Skip to content

Instantly share code, notes, and snippets.

@khlbrg
Last active July 11, 2018 21:54
Show Gist options
  • Save khlbrg/8541148 to your computer and use it in GitHub Desktop.
Save khlbrg/8541148 to your computer and use it in GitHub Desktop.
Showing error messages for Laravel forms
<div class="form-group input-group-lg @if ($errors->has('email')) has-error @endif">
{{ Form::text('email', null, array('class' => 'form-control tooltip-form', 'placeholder' => 'Email', 'id' => 'email', 'title' => 'Email')) }}
@if ($errors->has('email')) {{ $errors->first('email')}} @endif
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment