Update packages/support/src/helpers.php

This commit is contained in:
Dan Harrin
2025-08-10 20:26:20 +01:00
committed by GitHub
parent 282d9a2349
commit 1f80864d12
+1 -1
View File
@@ -175,7 +175,7 @@ if (! function_exists('Filament\Support\generate_search_column_expression')) {
->implode('.')
) . collect(str($column)->after('->')->explode('->')) // Handle JSON path parts
->map(function ($segment, $index) use ($column): string {
// if segment already contains '>something' (from ->> operator), preserve it
// If segment already starts with `>` (from `->>` operator), preserve it
$isExplicitOperatorPrefixed = str($segment)->startsWith('>');
$segment = $isExplicitOperatorPrefixed ? (string) str($segment)->after('>') : $segment;