password = Hash::make($object->getPassword()); return $user->save(); } catch (QueryException $exception){ throw new InternalServerErrorException($exception->getMessage()); } } }