$errors->any()
Then to get all of the error messages you can loop through the errors like below.
@if ($errors->any()) <div class="alert alert-danger"> <ul> @foreach ($errors->all() as $error) <li>{{ $error }}</li> @endforeach </ul> </div> @endif
460
3 years ago
0 comments
$errors->any()
@if ($errors->any()) <div class="alert alert-danger"> <ul> @foreach ($errors->all() as $error) <li>{{ $error }}</li> @endforeach </ul> </div> @endif
Frontend
Resource
Average
Average
No recent searches
Leave a reply