Skip to content

Instantly share code, notes, and snippets.

@mateusgf
Last active December 20, 2015 00:09
Show Gist options
  • Save mateusgf/6039345 to your computer and use it in GitHub Desktop.
Save mateusgf/6039345 to your computer and use it in GitHub Desktop.
@layout('layouts.default')
@section('content')
<h1>Register</h1>
@if($errors->has())
<p>The following errors have occurred:</p>
<ul id="form-errors">
{{ $errors->first('username', '<li>:message</li>') }}
{{ $errors->first('password', '<li>:message</li>') }}
{{ $errors->first('password_confirmation', '<li>:message</li>') }}
</ul>
@endif
{{ Form::open('register', 'POST') }}
{{ Form::token() }}
<p>
{{ Form::label('username', 'Username') }}<br />
{{ Form::text('username', Input::old('username')) }}
</p>
<p>
{{ Form::label('password', 'Password') }}<br />
{{ Form::password('password') }}
</p>
<p>
{{ Form::label('password_confirmation', 'Confirm Password') }}<br />
{{ Form::password('password_confirmation') }}
</p>
<p>{{ Form::submit('Register') }}</p>
{{ Form::close() }}
@endsection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment