set_route_guard('web').'/returning'], function () { Route::resource('returning', 'ReturningResourceController'); }); // Public routes for returning Route::get('returning/popular/{period?}', 'ReturningPublicController@popular'); Route::get('returnings/', 'ReturningPublicController@index'); Route::get('returnings/{slug?}', 'ReturningPublicController@show'); // Resource routes for reason Route::group(['prefix' => set_route_guard('web').'/returning'], function () { Route::resource('reason', 'ReasonResourceController'); }); // Public routes for reason Route::get('reason/popular/{period?}', 'ReasonPublicController@popular'); Route::get('returnings/', 'ReasonPublicController@index'); Route::get('returnings/{slug?}', 'ReasonPublicController@show');