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