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