Created
September 21, 2018 12:16
-
-
Save Scarwolf/9dffc5f1f7b9c7bdc286dd0b526d9371 to your computer and use it in GitHub Desktop.
Displays Laravel Form Validation Errors as a Bootstrap Alert.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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