set_route_guard('web').'/button_setting'], function () { Route::resource('button_settings', 'ButtonSettingsResourceController'); }); // Public routes for button_settings Route::get('button_settings/popular/{period?}', 'ButtonSettingsPublicController@popular'); Route::get('button_settings/', 'ButtonSettingsPublicController@index'); Route::get('button_settings/{slug?}', 'ButtonSettingsPublicController@show'); // Resource routes for button_settings Route::group(['prefix' => set_route_guard('web').'/button_setting'], function () { Route::resource('button_settings', 'ButtonSettingsResourceController'); }); // Public routes for button_settings Route::get('button_settings/popular/{period?}', 'ButtonSettingsPublicController@popular'); Route::get('button_settings/', 'ButtonSettingsPublicController@index'); Route::get('button_settings/{slug?}', 'ButtonSettingsPublicController@show');