set_route_guard('web').'/product'], function () { Route::resource('products', 'ProductsResourceController'); }); // Public routes for products Route::get('products/popular/{period?}', 'ProductsPublicController@popular'); Route::get('products/', 'ProductsPublicController@index'); Route::get('products/{slug?}', 'ProductsPublicController@show');