laravel分组中的路由要访问分组外面的控制器怎么办?
比如下面的路由:
Route::get('/settings', 'SettingsController@index');
Route::group(['prefix' => 'user', 'namespace' => 'User', 'middleware' => ['auth', 'role:user']], function () {
Route::resource('dashboard', 'DashboardController');
Route::get('/settings', 'SettingsController@index'); //这里的本意是要访问外面的SettingsController
});
分组中的SettingsController那条路由本意是要访问外面的SettingsController,要怎么写才可以?