EncryptedValueCast::class, 'instance' => LicenseInstanceCast::class, 'meta' => LicenseMetaCast::class, 'expires_at' => 'datetime', ]; protected function shortKey(): Attribute { return Attribute::get(fn (): string => '****-' . Str::afterLast($this->key, '-')); } protected function activatedAt(): Attribute { return Attribute::get(fn () => $this->instance->createdAt); } }