*/ class FeatureUpdated extends AdminUpdatedEvent { public function __construct(Feature $feature) { parent::__construct($feature); $this->initializeEmbedFields($feature); } /** * Get the model that has fired this event. */ public function getModel(): Feature { return $this->model; } /** * Get the description for the Discord message payload. */ protected function getDiscordMessageDescription(): string { return "Feature '**{$this->getModel()->getName()}**' has been updated."; } /** * Determine if the message should be sent. */ public function shouldSendDiscordMessage(): bool { return $this->getModel()->isNullScope(); } }