data = $data; } /** * Execute the job. * * @return void */ public function handle() { \Log::info('SendReservationCancelledMail: Starting to process job', [ 'reacter_email' => $this->data['reacter_email'], 'post_id' => $this->data['post_id'] ]); // Send the email to the reacter (person who cancelled the reservation) Mail::to($this->data['reacter_email'])->send(new ReservationCancelledMail($this->data)); \Log::info('SendReservationCancelledMail: Email sent successfully', ['to' => $this->data['reacter_email']]); } }