$meta */ public function record( ActivityType $type, string $description, ?User $user = null, ?Model $subject = null, array $meta = [], ?string $actorLabel = null, ): void { try { ActivityEvent::query()->create([ 'type' => $type->value, 'occurred_at' => now(), 'user_id' => $user?->id, 'actor_label' => Str::limit($actorLabel ?? (string) $user?->name, 240), 'subject_type' => $subject?->getMorphClass(), 'subject_id' => $subject?->getKey(), 'description' => Str::limit($description, 480), 'meta' => $meta ?: null, ]); } catch (\Throwable $exception) { Log::warning('Aktivitäts-Verlauf konnte nicht geschrieben werden.', [ 'type' => $type->value, 'error' => $exception->getMessage(), ]); } } }