daily pastebin goal
29%
SHARE
TWEET

Untitled

a guest Feb 13th, 2018 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <div id="container" align="center">
  2.      {{ Form::open(array('action' => 'UsersController@setCredentials', 'method' => 'POST' )) }}
  3.  
  4.      {{ Form::close() }}
  5. </div>
  6.    
  7. Route::post('/credential', 'UsersController@setCredentials');
  8.    
  9. public function setCredentials() {
  10.  
  11.   $this->user= $user;
  12. }
  13.    
  14. <input type="hidden" name="id" value="{{$user->id}}">
  15.    
  16. $user = User::find(Request::input('id'));
  17.    
  18. Form::model($user, ['route' => ['user.setCredentials', $user->id]])
  19.    
  20. Route::post('credential/{user}', 'UsersController@setCredentials')->name('user.setCredentials');
  21.    
  22. public function setCredentials(User $user) {
  23.  
  24.   $this->user= $user;
  25. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top