I am trying to return errors back to my view, this is part of my controller TestcategoryController
$rules =array(
\'name\' => \'required\'
I was having the same problem with Laravel 8.0
The only way I could solve this was by entering the error bags layer by layer until I got to the messages manually:
@if (count($errors->getBags()))
@foreach ($errors->getBags() as $bag)
@foreach ($bag->getMessages() as $messages)
@foreach ($messages as $message)
- {{ $message }}
@endforeach
@endforeach
@endforeach
@endif