Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="row">
- <div class="col-md-6">
- <h2>Family Form</h2>
- {!! Form::open() !!}
- {{ Form::label('name', "Name:") }}
- {{ Form::text('name', null, ['class' => 'form-control']) }}
- {{ Form::hidden('provider', false) }}
- {{ Form::label('email', "Email:") }}
- {{ Form::text('email', null, ['class' => 'form-control']) }}
- {{ Form::label('password', "Password:") }}
- {{ Form::password('password', ['class' => 'form-control']) }}
- {{ Form::label('password_confirmation', "Confirm Password:") }}
- {{ Form::password('password_confirmation', ['class' => 'form-control']) }}
- {{ Form::submit('Register', ['class' => 'btn btn-primary btn-block form-spacing-top']) }}
- {!! Form::close() !!}
- </div>
- <div class="col-md-6">
- <h2>Provider Form</h2>
- {!! Form::open() !!}
- {{ Form::label('name', "Name:") }}
- {{ Form::text('name', null, ['class' => 'form-control']) }}
- {{ Form::hidden('provider', true) }}
- {{ Form::label('email', "Email:") }}
- {{ Form::text('email', null, ['class' => 'form-control']) }}
- {{ Form::label('password', "Password:") }}
- {{ Form::password('password', ['class' => 'form-control']) }}
- {{ Form::label('password_confirmation', "Confirm Password:") }}
- {{ Form::password('password_confirmation', ['class' => 'form-control']) }}
- {{ Form::submit('Register', ['class' => 'btn btn-primary btn-block form-spacing-top']) }}
- {!! Form::close() !!}
- </div>
- </div>
- protected function create(array $data)
- {
- return User::create([
- 'name' => $data['name'],
- 'provider' => $data['provider'],
- 'email' => $data['email'],
- 'password' => bcrypt($data['password']),
- ]);
- }
- <div class="row">
- <div class="col-md-6">
- <h2>Family Form</h2>
- <form method="POST" action="//localhost:3000/auth/register" accept-charset="UTF-8"><input name="_token" type="hidden" value="Rli5AmRKkov64hPt6AEfr7yOLwA5EwUmozVePgQL">
- <label for="name">Name:</label>
- <input class="form-control" name="name" type="text" id="name">
- <input name="provider" type="hidden" value="">
- <label for="email">Email:</label>
- <input class="form-control" name="email" type="text" id="email">
- <label for="password">Password:</label>
- <input class="form-control" name="password" type="password" value="" id="password">
- <label for="password_confirmation">Confirm Password:</label>
- <input class="form-control" name="password_confirmation" type="password" value="" id="password_confirmation">
- <input class="btn btn-primary btn-block form-spacing-top" type="submit" value="Register">
- </form>
- </div>
- <div class="col-md-6">
- <h2>Provider Form</h2>
- <form method="POST" action="//localhost:3000/auth/register" accept-charset="UTF-8"><input name="_token" type="hidden" value="Rli5AmRKkov64hPt6AEfr7yOLwA5EwUmozVePgQL">
- <label for="name">Name:</label>
- <input class="form-control" name="name" type="text" id="name">
- <input name="provider" type="hidden" value="1">
- <label for="email">Email:</label>
- <input class="form-control" name="email" type="text" id="email">
- <label for="password">Password:</label>
- <input class="form-control" name="password" type="password" value="" id="password">
- <label for="password_confirmation">Confirm Password:</label>
- <input class="form-control" name="password_confirmation" type="password" value="" id="password_confirmation">
- <input class="btn btn-primary btn-block form-spacing-top" type="submit" value="Register">
- </form>
- </div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement