Am following tutorials in youtube on laravel, am using laravel 5.6. I get an error when try display error here the codes
This is the view
@if (isset($errors)&&count($errors) > 0)
<div class="alert alert-dismissable alert-danger fade show">
<button type="button" class="close" data-dismiss="alert" area-label="Close">
<span area-hidden="true">×</span>
</button>
@foreach ($errors->all() as $error)
<li><strong>{!! $error !!}}</strong></li>
@endforeach
</div>
@endif
This is the Controller
return back()->withInput()->with('errors', 'Error creating new company');
So I don't know where I went wrong Somebody could help me
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire