user = $user; $this->sendTo = $sendTo; $this->settings = Setting::first(); $this->template = EmailTemplates::where('id', 2)->first(); } /** * Execute the job. */ public function handle() { Mail::to($this->sendTo)->send(new InviteEmail($this->user, $this->settings, $this->template)); } }