我在Laravel 5.2中遇到此错误异常。我正在尝试访问auth / login
- 未定义的变量:错误
- 未定义变量:错误(查看: C:\ XAMPP \ htdocs中\教程\ laravel \资源\视图\ AUTH \ login.blade.php)
这是我的routes.php
#!/bin/sh
temp=`cat $1`
git log -10 --oneline > $1
echo "$temp" >> $1
这是auth / login.blade.php
Route::group(['middleware' => ['web']], function () {
Route::get('/', function () {
return view('welcome');
});
Route::get('about' , 'PagesController@about');
Route::resource('articles' , 'ArticlesController');
Route::controllers([
'auth' => 'Auth\AuthController',
'password' => 'Auth\PasswordController'
]);
});
答案 0 :(得分:1)
protected $middleware = [
\Illuminate\Session\Middleware\StartSession::class,
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
];