If you need access to session errors you need sessions. You should move your '/' route to the 'web' middleware group.
Route::group(['middleware' => ['web']], function () {
Route::get('/', function () {
return view('welcome');
});
});
The 'web' middleware group gives you sessions and the session errors.
If you have this setup at the moment and are still having that issue, you may want to change any adjustments you made to Kernel.php and use the default one. If you change the middleware applied to the 'web' group, you could cause an issue where things dont get applied correctly.
In regard to the session errors, those are being shared with views in \Illuminate\View\Middleware\ShareErrorsFromSession
, which the 'web' middleware group has applied.
bootstrap/routes.php
? – Marcin Nabiałek