user = $user; $this->otp = $otp; } /** * Execute the job. * * @return void */ public function handle() { try { $email = new UserConfirmEmail($this->user,$this->otp); Mail::to($this->user['email'])->queue($email); } catch (\Exception $ex) { Log::error($ex); } } }