I was creating a new Laravel project and when debugging the errors of a form request, I noticed that my ErrorBag was always empty. Even when in the controller $validat
Are you triggering any form validation errors? If you are then try this -
$messages = $validator->errors();
The messages variable should now have your errors
If you error bag is still empty
In my case, I moved \Illuminate\Session\Middleware\StartSession::class from my web group to the $middleware array.
As of v5.2.27, released on 2015-03-25, all routes in app\Http\routes.php are now in the web middleware group by default. If you have explicitly specified this middleware group inside your app\Http\routes.php file, you should remove it and that should resolve your issue.