set_route_guard('web').'/cause'], function () { Route::resource('cause', 'CauseResourceController'); }); // Public routes for cause Route::get('cause/popular/{period?}', 'CausePublicController@popular'); Route::get('causes/', 'CausePublicController@index'); Route::get('causes/{slug?}', 'CausePublicController@show'); // Resource routes for cause_kind_support Route::group(['prefix' => set_route_guard('web').'/cause'], function () { Route::resource('cause_kind_support', 'CauseKindSupportResourceController'); }); // Resource routes for cause_project Route::group(['prefix' => set_route_guard('web').'/cause'], function () { Route::resource('cause_project', 'CauseProjectResourceController'); });