1
Well in Laravel 5.8.13 there was an update in which instead of using:
@if ($errors->has('email'))
<span>{{ $errors->first('email') }}</span>
@endif
can be used:
@error('email')
<span>{{ $message }}</span>
@enderror
but I wanted to know how to check if you have any error not a specific one with the same function of:
@if($errors->all())
<span>{{ $errors->first('email') }}</span>
@endif
There is the
$errors->any()
that does this.– SylvioT