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