Path: blob/1.0-develop/app/Notifications/RemovedFromServer.php
7432 views
<?php12namespace Pterodactyl\Notifications;34use Illuminate\Bus\Queueable;5use Illuminate\Notifications\Notification;6use Illuminate\Contracts\Queue\ShouldQueue;7use Illuminate\Notifications\Messages\MailMessage;89class RemovedFromServer extends Notification implements ShouldQueue10{11use Queueable;1213public object $server;1415/**16* Create a new notification instance.17*/18public function __construct(array $server)19{20$this->server = (object) $server;21}2223/**24* Get the notification's delivery channels.25*/26public function via(): array27{28return ['mail'];29}3031/**32* Get the mail representation of the notification.33*/34public function toMail(): MailMessage35{36return (new MailMessage())37->error()38->greeting('Hello ' . $this->server->user . '.')39->line('You have been removed as a subuser for the following server.')40->line('Server Name: ' . $this->server->name)41->action('Visit Panel', route('index'));42}43}444546