*/ class AnnouncementCreated extends AdminCreatedEvent { /** * Create a new event instance. * * @param Announcement $announcement */ public function __construct(Announcement $announcement) { parent::__construct($announcement); } /** * Get the model that has fired this event. * * @return Announcement */ public function getModel(): Announcement { return $this->model; } /** * Get the description for the Discord message payload. * * @return string */ protected function getDiscordMessageDescription(): string { return "Announcement '**{$this->getModel()->getName()}**' has been created."; } }