Advertisement
mszarata

Untitled

Jun 12th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.25 KB | None | 0 0
  1.     public function update($id){
  2.         $user = User::find($id);
  3.         $user->name = Request::input('name');
  4.         $user->password = Hash::make(Request::input('password'));
  5.         $user->save();
  6.         return redirect()->route('users');
  7.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement