Skip to content

Instantly share code, notes, and snippets.

@RedDevilHat
Created May 9, 2017 20:08
Show Gist options
  • Save RedDevilHat/caecaff6d170fba84a4876d4c6c71180 to your computer and use it in GitHub Desktop.
Save RedDevilHat/caecaff6d170fba84a4876d4c6c71180 to your computer and use it in GitHub Desktop.
<div class="form-group {{ $errors->has('name') ? 'has-error' : ''}}">
{!! Form::label('name', 'Name', ['class' => 'col-md-4 control-label']) !!}
<div class="col-md-6">
{!! Form::text('name', null, ['class' => 'form-control']) !!}
{!! $errors->first('name', '<p class="help-block">:message</p>') !!}
</div>
</div><div class="form-group {{ $errors->has('description') ? 'has-error' : ''}}">
{!! Form::label('description', 'Description', ['class' => 'col-md-4 control-label']) !!}
<div class="col-md-6">
{!! Form::textarea('description', null, ['class' => 'form-control']) !!}
{!! $errors->first('description', '<p class="help-block">:message</p>') !!}
</div>
</div>
<div class="form-group">
<div class="col-md-offset-4 col-md-4">
{!! Form::submit(isset($submitButtonText) ? $submitButtonText : 'Create', ['class' => 'btn btn-primary']) !!}
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment