Skip to content

Instantly share code, notes, and snippets.

@Sarav-S
Last active June 2, 2016 21:58
Show Gist options
  • Save Sarav-S/2b15b707bbd9ebe0817215efee025ac2 to your computer and use it in GitHub Desktop.
Save Sarav-S/2b15b707bbd9ebe0817215efee025ac2 to your computer and use it in GitHub Desktop.
@if (isset($errors) && (count($errors) > 0))
<div class="alert alert-danger">
<ul>
@foreach ($errors->all() as $error)
<li>{{ $error }}</li>
@endforeach
</ul>
</div>
@endif
<div class="form-group">
{{ Form::label('name', 'Name') }} <em>*</em>
{{ Form::text('name', null, ['class' => 'form-control', 'id' => 'name', 'required' => 'required']) }}
</div>
<div class="form-group">
{{ Form::label('email', 'Email') }} <em>*</em>
{{ Form::email('email', null, ['class' => 'form-control', 'id' => 'email']) }}
</div>
<div class="form-group">
{{ Form::label('password', 'Password') }} <em>*</em>
{{ Form::password('password', ['class' => 'form-control', 'id' => 'password']) }}
</div>
<div class="form-group">
{{ Form::submit('Submit', ['class' => 'btn btn-success']) }}
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment