Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function update($id)
- {
- //$id=$_POST['id'];
- $user = AppUser::find($id);
- $user->email = $_POST['email'];
- $user->name = $_POST['name'];
- if ($_POST['password'] != '') {
- $user->password = Hash::make($_POST['password']);
- }
- $user->user_level = $_POST['user_level'];
- $user->location =$_POST['location'];
- $user->gender = $_POST['gender'];
- $user->save();
Add Comment
Please, Sign In to add comment