Skip to content

Instantly share code, notes, and snippets.

@yasaryousuf
Last active March 28, 2018 06:43
Show Gist options
  • Save yasaryousuf/2136c69ea8b2cb7a141fbae4ffc5872a to your computer and use it in GitHub Desktop.
Save yasaryousuf/2136c69ea8b2cb7a141fbae4ffc5872a to your computer and use it in GitHub Desktop.
[laravel-form]
<form method="POST" action="/registation" id="reg-form">
{{ csrf_field() }}
<div class="modal-form-padding">
<div class="row">
<div class="col-md-6">
<div class="form-group {{ $errors->has('first_name') ? 'has-error' :'' }}">
<input type="text" class="modal-input-control" placeholder="First Name" name="first_name" id="first_name" value="{{ old('first_name') }}" required>
@if ($errors->has('first_name'))
<span class="help-block text-danger">
<strong>{{ $errors->first('first_name') }}</strong>
</span>
@endif
</div>
</div>
</div>
</div>
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment