user = User::query()->where('id', $userId)->first(); } /** * Build the message. * * @return $this * @throws \Exception */ public function build() { return $this->from(Settings::settingValue('site.main.email'))->subject('Account Changed')->view('emails.accountChange')->with(['account' => $this->user->role->name, 'username' => $this->user->username, 'site' => Settings::settingValue('site.main.title')]); } }