Controller:
if ($validator->fails()) {
return redirect()->back()
->withInput($data)
->withErrors($validator->errors());
}
Here's the dump of $validator->errors() using dd:

BUT unfortunately in view I'm getting $errors as empty ViewErrorBag object:

What I'm doing wrong?
If you can dump the errors before passing to the view, but get it empty on your view, so it's a problem with your Session. Try checking your config/session.php and also setting one value at one page using Session::put() and grabbing it back with Session::get() at another page to see if it is working properly.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With