diff --git a/app/Http/Livewire/Tables/CityTable.php b/app/Http/Livewire/Tables/CityTable.php index 2337d286..b52b61c3 100644 --- a/app/Http/Livewire/Tables/CityTable.php +++ b/app/Http/Livewire/Tables/CityTable.php @@ -44,7 +44,7 @@ class CityTable extends DataTableComponent $columns = collect([ Column::make("Stadt Name", "name") ->sortable() - ->searchable(), + ->searchable(fn($builder, $term) => $builder->where('cities.name', 'ilike', '%'.$term.'%')), ]); if ($this->type === 'school') { $columns = $columns->merge([