jcicero518
6/20/2018 - 10:44 PM

Laravel Bulma Flash Messages

Laravel Bulma Flash Messages

@if(count($errors->all()))
    <article class="message is-warning">
        <div class="message-header">
            <p>Notice</p>
        </div>
        <div class="message-body">
            <ul>
                @foreach($errors->all() as $error)
                    <li>{{ $error }}</li>
                @endforeach
            </ul>
        </div>
    </article>
@endif

@if(Session::has('info'))
    <div class="notification is-info">
        {{ Session::get('info') }}
    </div>
@endif

@if(Session::has('warning'))
    <div class="notification is-warning">
        {{ Session::get('warning') }}
    </div>
@endif

@if(Session::has('status'))
    <div class="notification is-info">
        {{ Session::get('status') }}
    </div>
@endif