'datetime', 'created_at' => 'datetime', ]; } protected static function booted(): void { static::updating(fn () => throw new \LogicException('legal_document_acceptances ist insert-only.')); static::deleting(fn () => throw new \LogicException('legal_document_acceptances wird nicht gelöscht.')); } /** * @return BelongsTo */ public function user(): BelongsTo { return $this->belongsTo(User::class); } /** * @return BelongsTo */ public function legalDocument(): BelongsTo { return $this->belongsTo(LegalDocument::class); } }