set_route_guard('web').'/product'], function () { Route::resource('brand', 'BrandResourceController'); }); // Public routes for brand Route::get('brand/popular/{period?}', 'BrandPublicController@popular'); Route::get('products/', 'BrandPublicController@index'); Route::get('products/{slug?}', 'BrandPublicController@show'); // Resource routes for category Route::group(['prefix' => set_route_guard('web').'/product'], function () { Route::resource('category', 'CategoryResourceController'); }); // Public routes for category Route::get('category/popular/{period?}', 'CategoryPublicController@popular'); Route::get('products/', 'CategoryPublicController@index'); Route::get('products/{slug?}', 'CategoryPublicController@show'); // Resource routes for product Route::group(['prefix' => set_route_guard('web').'/product'], function () { Route::resource('product', 'ProductResourceController'); }); // Public routes for product Route::get('product/popular/{period?}', 'ProductPublicController@popular'); Route::get('products/', 'ProductPublicController@index'); Route::get('products/{slug?}', 'ProductPublicController@show');