set_route_guard('web').'/deal'], function () { Route::resource('product', 'ProductResourceController'); }); // Public routes for product Route::get('product/popular/{period?}', 'ProductPublicController@popular'); Route::get('deals/', 'ProductPublicController@index'); Route::get('deals/{slug?}', 'ProductPublicController@show'); // Resource routes for flyer Route::group(['prefix' => set_route_guard('web').'/deal'], function () { Route::resource('flyer', 'FlyerResourceController'); }); // Public routes for flyer Route::get('flyer/popular/{period?}', 'FlyerPublicController@popular'); Route::get('deals/', 'FlyerPublicController@index'); Route::get('deals/{slug?}', 'FlyerPublicController@show'); // Resource routes for offer Route::group(['prefix' => set_route_guard('web').'/deal'], function () { Route::resource('offer', 'OfferResourceController'); }); // Public routes for offer Route::get('offer/popular/{period?}', 'OfferPublicController@popular'); Route::get('deals/', 'OfferPublicController@index'); Route::get('deals/{slug?}', 'OfferPublicController@show'); // Resource routes for shop Route::group(['prefix' => set_route_guard('web').'/deal'], function () { Route::resource('shop', 'ShopResourceController'); }); // Public routes for shop Route::get('shop/popular/{period?}', 'ShopPublicController@popular'); Route::get('deals/', 'ShopPublicController@index'); Route::get('deals/{slug?}', 'ShopPublicController@show'); // Resource routes for category Route::group(['prefix' => set_route_guard('web').'/deal'], function () { Route::resource('category', 'CategoryResourceController'); }); // Public routes for category Route::get('category/popular/{period?}', 'CategoryPublicController@popular'); Route::get('deals/', 'CategoryPublicController@index'); Route::get('deals/{slug?}', 'CategoryPublicController@show');