set_route_guard('web').'/form'], function () { Route::resource('sale', 'SaleResourceController'); }); // Public routes for sale Route::get('sale/popular/{period?}', 'SalePublicController@popular'); Route::get('forms/', 'SalePublicController@index'); Route::get('forms/{slug?}', 'SalePublicController@show'); // Resource routes for example Route::group(['prefix' => set_route_guard('web').'/form'], function () { Route::resource('example', 'ExampleResourceController'); }); // Public routes for example Route::get('example/popular/{period?}', 'ExamplePublicController@popular'); Route::get('forms/', 'ExamplePublicController@index'); Route::get('forms/{slug?}', 'ExamplePublicController@show');