Skip to content

Instantly share code, notes, and snippets.

@Scarwolf
Created September 21, 2018 12:16
Show Gist options
  • Save Scarwolf/9dffc5f1f7b9c7bdc286dd0b526d9371 to your computer and use it in GitHub Desktop.
Save Scarwolf/9dffc5f1f7b9c7bdc286dd0b526d9371 to your computer and use it in GitHub Desktop.
Displays Laravel Form Validation Errors as a Bootstrap Alert.
@if(count($errors) > 0)
<div class="row">
<div class="col-md-12">
<div class="alert alert-danger">
@foreach ($errors->all() as $error)
<div>{{ $error }}</div>
@endforeach
</div>
</div>
</div>
@endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment