2023-08-16 16:03:30 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Notifications\Internal;
|
|
|
|
|
|
|
|
use App\Notifications\Channels\DiscordChannel;
|
|
|
|
use Illuminate\Bus\Queueable;
|
|
|
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
|
|
|
use Illuminate\Notifications\Notification;
|
|
|
|
|
|
|
|
class GeneralNotification extends Notification implements ShouldQueue
|
|
|
|
{
|
|
|
|
use Queueable;
|
|
|
|
|
|
|
|
public function __construct(public string $message)
|
2023-09-06 12:07:34 +02:00
|
|
|
{
|
|
|
|
}
|
2023-08-16 16:03:30 +02:00
|
|
|
|
|
|
|
public function via(object $notifiable): array
|
|
|
|
{
|
2023-09-06 12:07:34 +02:00
|
|
|
return [DiscordChannel::class];
|
2023-08-16 16:03:30 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public function toDiscord(): string
|
|
|
|
{
|
|
|
|
return $this->message;
|
|
|
|
}
|
|
|
|
}
|