Question : alert laravel blade
Answered by : kind-katipo-0q0rpdncxs7i
<!-- /resources/views/post/create.blade.php -->
<h1>Create Post</h1>
@if ($errors->any()) <div class="alert alert-danger"> <ul> @foreach ($errors->all() as $error) <li>{{ $error }}</li> @endforeach </ul> </div>
@endif
<!-- Create Post Form -->
Source : https://laravel.com/docs/9.x/validation | Last Update : Thu, 21 Apr 22