mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-24 15:42:09 +08:00
Update packages/support/src/helpers.php
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user