Last active
July 11, 2018 21:54
-
-
Save khlbrg/8541148 to your computer and use it in GitHub Desktop.
Showing error messages for Laravel forms
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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