user = $user; $this->invite = $invite; $this->siteEmail = Settings::settingValue('site.main.email'); $this->siteTitle = Settings::settingValue('site.main.title'); } /** * Build the message. * * @return $this * @throws \Exception */ public function build() { return $this->from($this->siteEmail)->subject('Invite received')->view('emails.sendinvite')->with(['invite' => $this->invite, 'username' => $this->user['username'], 'site' => $this->siteTitle, 'email' => $this->user['email']]); } }