set_route_guard('web').'/project'], function () { Route::resource('project', 'ProjectResourceController'); }); // Public routes for project Route::get('project/popular/{period?}', 'ProjectPublicController@popular'); Route::get('projects/', 'ProjectPublicController@index'); Route::get('projects/{slug?}', 'ProjectPublicController@show'); // Resource routes for project_item Route::group(['prefix' => set_route_guard('web').'/project'], function () { Route::resource('project_item', 'ProjectItemResourceController'); }); // Resource routes for project_kind_support Route::group(['prefix' => set_route_guard('web').'/project'], function () { Route::resource('project_kind_support', 'ProjectKindSupportResourceController'); });