set_route_guard('web').'/representative'], function () { Route::resource('representatives', 'RepresentativesResourceController'); }); // Public routes for representatives Route::get('representatives/popular/{period?}', 'RepresentativesPublicController@popular'); Route::get('representatives/', 'RepresentativesPublicController@index'); Route::get('representatives/{slug?}', 'RepresentativesPublicController@show');