Dapatkan Validator Pesan Gagal Laravel
$errors = $validator->errors()->getMessages();
JérômeW
$errors = $validator->errors()->getMessages();
@if ($errors->any())
<div class="alert alert-danger">
<ul>
@foreach ($errors->all() as $error)
<li>{{ $error }}</li>
@endforeach
</ul>
</div>
@endif