set_route_guard('web').'/flat'], function () { Route::resource('flats', 'FlatsResourceController'); }); // Public routes for flats Route::get('flats/popular/{period?}', 'FlatsPublicController@popular'); Route::get('flats/', 'FlatsPublicController@index'); Route::get('flats/{slug?}', 'FlatsPublicController@show');