*/ class ResourceableCreated extends PivotCreatedEvent { use HasLabel { privateLabel as label; } public function __construct(Resourceable $resourceable) { parent::__construct($resourceable->resourceable, $resourceable->resource); } protected function getDiscordMessageDescription(): string { $foreign = $this->getForeign(); $related = $this->getRelated(); return "Resource '**{$foreign->getName()}**' has been attached to {$this->label($related)} '**{$related->getName()}**'."; } }