'datetime', ]; } protected static function booted(): void { static::updating(fn () => throw new \LogicException('owntracks_credential_events is insert-only')); static::deleting(fn () => throw new \LogicException('owntracks_credential_events is insert-only')); } public function driver(): BelongsTo { return $this->belongsTo(User::class, 'driver_id') ->withoutGlobalScope(ExcludeAnonymizedScope::class); } public function actor(): BelongsTo { return $this->belongsTo(User::class, 'actor_user_id'); } }