Is there an error directive? I’d like to add a class to my input element if an error exists.
Error directive
It can be done with regular blade:
class="form-control input-md  @if($errors->has('email')) form-error-input @endif"
           
           
           1 Like
         
         Thanks, that is working great!