1@if($errors->any())
2 <div class="alert alert-danger">
3 <p><strong>Opps Something went wrong</strong></p>
4 <ul>
5 @foreach ($errors->all() as $error)
6 <li>{{ $error }}</li>
7 @endforeach
8 </ul>
9 </div>
10@endif
11
12@if(session('success'))
13 <div class="alert alert-success">{{session('success')}}</div>
14@endif
15
16@if(session('error'))
17 <div class="alert alert-danger">{{session('error')}}</div>
18@endif
19
1@if(count($errors) > 0)
2<div class="p-1">
3 @foreach($errors->all() as $error)
4 <div class="alert alert-warning alert-danger fade show" role="alert">{{$error}} <button type="button" class="close"
5 data-dismiss="alert" aria-label="Close">
6 <span aria-hidden="true">×</span>
7 </button></div>
8 @endforeach
9</div>
10@endif
1@if($errors->any())
2 {{ implode('', $errors->all('<div>:message</div>')) }}
3@endif
1<input type="text" name="firstname">
2@if($errors->has('firstname'))
3 <div class="error">{{ $errors->first('firstname') }}</div>
4@endif
5