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?