diff --git a/app/Filament/Resources/PhotoResource.php b/app/Filament/Resources/PhotoResource.php index bff5dfe3..7b1f2f4e 100644 --- a/app/Filament/Resources/PhotoResource.php +++ b/app/Filament/Resources/PhotoResource.php @@ -38,7 +38,9 @@ public static function table(Table $table): Table ->sortable(), ImageColumn::make('full_path') ->label('Photo') - ->searchable(), + ->searchable(query: function (Builder $query, string $search): Builder { + return $query->where('path', 'like', "%{$search}%"); + }), TextColumn::make('gps') ->label('GPS') ->getStateUsing(fn (Photo $photo): ?string => $photo->latitude && $photo->longitude