afterCommit(); } /** * Get the notification's delivery channels. * * @return list */ public function via(): array { return ['mail']; } /** * Get the mail representation of the notification. */ public function toMail(): MailMessage { return (new MailMessage) ->error() ->subject(__('notifications.removed_from_server.subject')) ->greeting(__('notifications.removed_from_server.greeting', ['name' => $this->server['user']])) ->line(__('notifications.removed_from_server.intro')) ->line(__('notifications.removed_from_server.server', ['server' => $this->server['name']])) ->action(__('notifications.removed_from_server.action'), route('index')); } }