php artisan route:list выдает такую ошибку:
Target [Illuminate\Contracts\Auth\Registrar] is not instantiable
а код в routes.phpRoute::get('/', 'WelcomeController@index');
Route::get('about', 'PagesController@about');
Route::get('contact', 'PagesController@contact');
Route::get('auth/login', 'PagesController@login');
Route::resource('articles', 'ArticlesController');
Route::controllers([
'auth' => 'Auth\AuthController',
'password' => 'Auth\PasswordController',
]);
а если убрать
Route::controllers([
'auth' => 'Auth\AuthController',
'password' => 'Auth\PasswordController',
]);
тогда все работаетC:\OpenServer\domains\firstapp>php artisan route:list
+--------+----------+--------------------------+------------------+-------------------------------------------------+------------+
| Domain | Method | URI | Name | Action | Middleware |
+--------+----------+--------------------------+------------------+-------------------------------------------------+------------+
| | GET|HEAD | / | | App\Http\Controllers\WelcomeController@index | guest |
| | GET|HEAD | about | | App\Http\Controllers\PagesController@about | |
| | GET|HEAD | contact | | App\Http\Controllers\PagesController@contact | |
| | GET|HEAD | auth/login | | App\Http\Controllers\PagesController@login | |
| | GET|HEAD | articles | articles.index | App\Http\Controllers\ArticlesController@index | |
| | GET|HEAD | articles/create | articles.create | App\Http\Controllers\ArticlesController@create | |
| | POST | articles | articles.store | App\Http\Controllers\ArticlesController@store | |
| | GET|HEAD | articles/{articles} | articles.show | App\Http\Controllers\ArticlesController@show | |
| | GET|HEAD | articles/{articles}/edit | articles.edit | App\Http\Controllers\ArticlesController@edit | |
| | PUT | articles/{articles} | articles.update | App\Http\Controllers\ArticlesController@update | |
| | PATCH | articles/{articles} | | App\Http\Controllers\ArticlesController@update | |
| | DELETE | articles/{articles} | articles.destroy | App\Http\Controllers\ArticlesController@destroy | |
+--------+----------+--------------------------+------------------+-------------------------------------------------+------------+
Вопрос задан
более трёх лет назад
2340 просмотров