Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

displaying errors in laravel

@if(count($errors) > 0)
<div class="p-1">
    @foreach($errors->all() as $error)
    <div class="alert alert-warning alert-danger fade show" role="alert">{{$error}} <button type="button" class="close"
            data-dismiss="alert" aria-label="Close">
            <span aria-hidden="true">&times;</span>
        </button></div>
    @endforeach
</div>
@endif
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #displaying #errors #laravel
ADD COMMENT
Topic
Name
8+6 =