SyntaxFix
Write A Post
Hire A Developer
Questions
In Laravel 5.5:
return back()->withErrors($arrayWithErrors);
In the view using Blade:
@if($errors->has()) <ul> @foreach ($errors->all() as $error) <li>{{ $error }}</li> @endforeach </ul> @endif