public function handle() { $users = new UserRepository(); $user = $users->findById($this->userId); $user->password = $this->newPassword; $user->update(); }