$userId ?? Auth::id(), 'action' => $action, 'target_type' => $targetType, 'target_id' => $targetId, 'description' => $description, 'meta' => $meta, 'created_at' => now(), ]); } }