Advertisement
Guest User

Untitled

a guest
Dec 2nd, 2016
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.96 KB | None | 0 0
  1. <div class="row">
  2. <div class="col-md-6">
  3. <h2>Family Form</h2>
  4. {!! Form::open() !!}
  5.  
  6. {{ Form::label('name', "Name:") }}
  7. {{ Form::text('name', null, ['class' => 'form-control']) }}
  8.  
  9. {{ Form::hidden('provider', false) }}
  10.  
  11. {{ Form::label('email', "Email:") }}
  12. {{ Form::text('email', null, ['class' => 'form-control']) }}
  13.  
  14. {{ Form::label('password', "Password:") }}
  15. {{ Form::password('password', ['class' => 'form-control']) }}
  16.  
  17. {{ Form::label('password_confirmation', "Confirm Password:") }}
  18. {{ Form::password('password_confirmation', ['class' => 'form-control']) }}
  19.  
  20. {{ Form::submit('Register', ['class' => 'btn btn-primary btn-block form-spacing-top']) }}
  21.  
  22. {!! Form::close() !!}
  23. </div>
  24.  
  25. <div class="col-md-6">
  26. <h2>Provider Form</h2>
  27. {!! Form::open() !!}
  28.  
  29. {{ Form::label('name', "Name:") }}
  30. {{ Form::text('name', null, ['class' => 'form-control']) }}
  31.  
  32. {{ Form::hidden('provider', true) }}
  33.  
  34. {{ Form::label('email', "Email:") }}
  35. {{ Form::text('email', null, ['class' => 'form-control']) }}
  36.  
  37. {{ Form::label('password', "Password:") }}
  38. {{ Form::password('password', ['class' => 'form-control']) }}
  39.  
  40. {{ Form::label('password_confirmation', "Confirm Password:") }}
  41. {{ Form::password('password_confirmation', ['class' => 'form-control']) }}
  42.  
  43. {{ Form::submit('Register', ['class' => 'btn btn-primary btn-block form-spacing-top']) }}
  44.  
  45. {!! Form::close() !!}
  46. </div>
  47. </div>
  48.  
  49. protected function create(array $data)
  50. {
  51. return User::create([
  52. 'name' => $data['name'],
  53. 'provider' => $data['provider'],
  54. 'email' => $data['email'],
  55. 'password' => bcrypt($data['password']),
  56. ]);
  57.  
  58. }
  59.  
  60. <div class="row">
  61. <div class="col-md-6">
  62. <h2>Family Form</h2>
  63. <form method="POST" action="//localhost:3000/auth/register" accept-charset="UTF-8"><input name="_token" type="hidden" value="Rli5AmRKkov64hPt6AEfr7yOLwA5EwUmozVePgQL">
  64.  
  65. <label for="name">Name:</label>
  66. <input class="form-control" name="name" type="text" id="name">
  67.  
  68. <input name="provider" type="hidden" value="">
  69.  
  70. <label for="email">Email:</label>
  71. <input class="form-control" name="email" type="text" id="email">
  72.  
  73. <label for="password">Password:</label>
  74. <input class="form-control" name="password" type="password" value="" id="password">
  75.  
  76. <label for="password_confirmation">Confirm Password:</label>
  77. <input class="form-control" name="password_confirmation" type="password" value="" id="password_confirmation">
  78.  
  79. <input class="btn btn-primary btn-block form-spacing-top" type="submit" value="Register">
  80.  
  81. </form>
  82. </div>
  83.  
  84. <div class="col-md-6">
  85. <h2>Provider Form</h2>
  86. <form method="POST" action="//localhost:3000/auth/register" accept-charset="UTF-8"><input name="_token" type="hidden" value="Rli5AmRKkov64hPt6AEfr7yOLwA5EwUmozVePgQL">
  87.  
  88. <label for="name">Name:</label>
  89. <input class="form-control" name="name" type="text" id="name">
  90.  
  91. <input name="provider" type="hidden" value="1">
  92.  
  93. <label for="email">Email:</label>
  94. <input class="form-control" name="email" type="text" id="email">
  95.  
  96. <label for="password">Password:</label>
  97. <input class="form-control" name="password" type="password" value="" id="password">
  98.  
  99. <label for="password_confirmation">Confirm Password:</label>
  100. <input class="form-control" name="password_confirmation" type="password" value="" id="password_confirmation">
  101.  
  102. <input class="btn btn-primary btn-block form-spacing-top" type="submit" value="Register">
  103.  
  104. </form>
  105. </div>
  106. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement