Instantly share code, notes, and snippets.

@jeffandersen jeffandersen/errors.blade.php Secret
Created Dec 13, 2018

Embed
What would you like to do?
<!-- resources/views/common/errors.blade.php -->
@if (count($errors) > 0)
<div class="alert alert-danger">
<strong>Whoops! Something went wrong!</strong>
<br><br>
<ul>
@foreach ($errors->all() as $error)
<li>{{ $error }}</li>
@endforeach
</ul>
</div>
@endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment