Laravel ErrorException Undefined offset: 0 when adding Route



我不能使用:php artisan make:auth

所以我使用以下命令:

composer require laravel/ui
php artisan ui vue --auth
php artisan migrate
npm install
npm run dev

网站.php:

Route::get('/', function () {
return view('welcome');
});
Route::Auth();;

Route::get('/home', 'HomeController@index')->name('home');

然后,索引停止工作并发送错误:Laravel ErrorException Undefined offset: 0

如果我在 Web 中记录Route::Auth();行.php索引将重新联机,但没有登录或注册的选项

阻止Auth运行的错误是什么?

你用大写的"A"写了 Route::Auth((,它是 Route::auth((; 在 laravel v<=5.1 中,它是 "Auth::routes((;">

最新更新