This is a breaking problem with the 5.2 upgrade. What’s happening is the middleware which is responsible for making that errors
variable available to all your views is not being utilized because it was moved from the global middleware to the web
middleware group.
There are two ways to fix this:
-
In your
kernel.php
file, you can move the middleware\Illuminate\View\Middleware\ShareErrorsFromSession::class
back to theprotected $middleware
property. -
You can wrap all your web routes with a route group and apply the
web
middleware to them.Route::group(['middleware' => 'web'], function() { // Place all your web routes here... });