action = $event->action; $this->landlord_contract = $landlord_contract; $this->request = $event->request; $this->event = $event; } /** * Get the mail representation of the notification. * * @param mixed $notifiable * @return \Illuminate\Notifications\Messages\MailMessage */ public function toMail($notifiable) { return (new MailMessage) ->subject('LandlordContract Approved - ' . config('app.name')) ->view('contact::landlord_contract.email.action', ['data' => $this->landlord_contract]); } /** * Get the notification's delivery channels. * * @param object $notifiable * @return array */ public function via(object $notifiable): array { return ['mail']; } }