Guest User

Untitled

a guest
May 17th, 2018
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. public function update($id)
  2. {
  3. //$id=$_POST['id'];
  4. $user = AppUser::find($id);
  5. $user->email = $_POST['email'];
  6. $user->name = $_POST['name'];
  7. if ($_POST['password'] != '') {
  8. $user->password = Hash::make($_POST['password']);
  9.  
  10. }
  11. $user->user_level = $_POST['user_level'];
  12. $user->location =$_POST['location'];
  13. $user->gender = $_POST['gender'];
  14. $user->save();
Add Comment
Please, Sign In to add comment