@if(Session::has('messages') && Session::get('messages') != null && count(Session::get('messages')) > 0)
Hark! Success!
@foreach(Session::get('messages') as $message)
- {!! $message !!}
@endforeach
@elseif(isset($messages) && $messages != null && count($messages) > 0)
Hark! Success!
@foreach($messages as $message)
- {!! $message !!}
@endforeach
@endif
@if(Session::has('errors') && Session::get('errors') != null && count(Session::get('errors')) > 0)
Hark! An Error!
@if( is_array(Session::get('errors')) )
@foreach(Session::get('errors') as $error)
- {!! $error !!}
@endforeach
@else
@foreach(Session::get('errors')->getBag('default')->all() as $error)
- {!! $error !!}
@endforeach
@endif
@elseif(isset($errors) && $errors != null && count($errors) > 0)
Hark! An Error!
@foreach($errors as $error)
- {!! $error !!}
@endforeach
@endif