Skip to content

Instantly share code, notes, and snippets.

@0xlemi
Created September 18, 2016 19:13
Show Gist options
  • Save 0xlemi/3fce395172d666b463147d4dc0725c0a to your computer and use it in GitHub Desktop.
Save 0xlemi/3fce395172d666b463147d4dc0725c0a to your computer and use it in GitHub Desktop.
<div class="form-group{{ $errors->has('field') ? ' has-error': '' }}">
<lable for="field">Field</label>
<input type="text" class="form-control" name="field" value="{{ old('field') ? old('field') : $object->field }}">
@if ($errors->has('field'))
<div class="help-block">
{{ $errors->first('field') }}
</div>
@endif
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment