<commit_before><?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Auth::routes();

Route::get('/', 'HomeController@index');
Route::get('/products/{id}', 'ProductController@show')->name('productsDetail');

Route::get('/categoy/{id}', 'CategoryController@show')->name('showProductByCategory');

Route::get('/type/{id}', 'TypeController@show')->name('showProductByType');

Route::post('/cart/store', 'CartController@store')->name('cartStore');
Route::get('/cart/show', 'CartController@show')->name('cartShow');
Route::get('/cart/{rowId}/delete', 'CartController@delete')->name('cartDelete');
Route::post('/cart/{rowId}/update', 'CartController@update')->name('cartUpdate');

Route::get('/order/show', 'OrderController@show')->name('orderShow');
Route::post('/order/store', 'OrderController@store')->name('orderStore');

Route::get('/ajaxCity', 'CityController@select');
Route::get('/ajaxDistrict', "DistrictController@select");

Route::group([ 'middleware' => ['auth'] ] , function (){

    Route::get('/registerShops/create', 'ShopsController@create')->name('registerShopCreate');
    Route::post('/registerShops', 'ShopsController@store')->name('registerShopStore');
});

Route::group(['prefix' => 'admin', 'namespace' => 'Admin', 'middleware' => ['auth']], function () {
    Route::get('/', 'AdminController@index')->name('admin');

    Route::get('/products', 'ProductController@index')->name('adminProducts');
    Route::get('/products/create', 'ProductController@create')->name('adminProductsCreate');
    Route::post('/products', 'ProductController@store')->name('adminProductsStore');
    Route::get('/products/{id}/edit', 'ProductController@edit')->name('adminProductsEdit');
    Route::put('/products/{id}', 'ProductController@update')->name('adminProductsUpdate');
    Route::get('/products/{id}/delete', 'ProductController@destroy')->name('adminProductsDelete');
<commit_msg>feat(shops):register shops<commit_after><?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Auth::routes();

Route::get('/', 'HomeController@index');
Route::get('/products/{id}', 'ProductController@show')->name('productsDetail');

Route::get('/categoy/{id}', 'CategoryController@show')->name('showProductByCategory');

Route::get('/type/{id}', 'TypeController@show')->name('showProductByType');

Route::post('/cart/store', 'CartController@store')->name('cartStore');
Route::get('/cart/show', 'CartController@show')->name('cartShow');
Route::get('/cart/{rowId}/delete', 'CartController@delete')->name('cartDelete');
Route::post('/cart/{rowId}/update', 'CartController@update')->name('cartUpdate');

Route::get('/order/show', 'OrderController@show')->name('orderShow');
Route::post('/order/store', 'OrderController@store')->name('orderStore');

Route::get('/ajaxCity', 'CityController@select');
Route::get('/ajaxDistrict', "DistrictController@select");

Route::group([ ‘middleware’ => ['auth']], function () {

    Route::get('/registerShops/create', 'ShopsController@create')->name('registerShopCreate');
    Route::post('/registerShops', 'ShopsController@store')->name('registerShopStore');
});

Route::group(['prefix' => 'admin', 'namespace' => 'Admin', 'middleware' => ['auth']], function () {
    Route::get('/', 'AdminController@index')->name('admin');

    Route::get('/products', 'ProductController@index')->name('adminProducts');
    Route::get('/products/create', 'ProductController@create')->name('adminProductsCreate');
    Route::post('/products', 'ProductController@store')->name('adminProductsStore');
    Route::get('/products/{id}/edit', 'ProductController@edit')->name('adminProductsEdit');
    Route::put('/products/{id}', 'ProductController@update')->name('adminProductsUpdate');
    Route::get('/products/{id}/delete', 'ProductController@destroy')->name('adminProductsDelete');

{'fraction_non_alphanumeric': 0.2786995515695067, 'fraction_numerical': 0.0, 'mean_word_length': 5.102599179206567, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 47, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6460491', 'n_tokens_mistral': 1159, 'n_tokens_neox': 1147, 'n_words': 177}