akmalhalabi
10/1/2018 - 1:16 AM

display all errors onto page

quick snippet to show all errors on page in laravel

@if ($errors->any())
    <div class="alert alert-danger">
        <ul style="margin:0;">
            @foreach ($errors->all() as $error)
                <li>{{ $error }}</li>
            @endforeach
        </ul>
    </div>
@endif