'array', 'options' => 'array', 'locked_at' => 'datetime', ]; } protected static function booted(): void { static::updating(function (RightsProfileVersion $version): void { if ($version->getOriginal('locked_at') !== null) { throw new DomainRuleException('Eine verwendete Rechteprofil-Fassung ist unveränderlich.'); } }); } public function profile(): BelongsTo { return $this->belongsTo(RightsProfile::class, 'rights_profile_id'); } }