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) ->subject(__('notifications.added_to_server.subject')) ->greeting(__('notifications.added_to_server.greeting', ['name' => $this->server['user']])) ->line(__('notifications.added_to_server.intro')) ->line(__('notifications.added_to_server.server', ['server' => $this->server['name']])) ->action(__('notifications.added_to_server.action'), url('/server/'.$this->server['uuidShort'])); } }