mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
cities search
This commit is contained in:
@@ -44,7 +44,7 @@ class CityTable extends DataTableComponent
|
|||||||
$columns = collect([
|
$columns = collect([
|
||||||
Column::make("Stadt Name", "name")
|
Column::make("Stadt Name", "name")
|
||||||
->sortable()
|
->sortable()
|
||||||
->searchable(),
|
->searchable(fn($builder, $term) => $builder->where('cities.name', 'ilike', '%'.$term.'%')),
|
||||||
]);
|
]);
|
||||||
if ($this->type === 'school') {
|
if ($this->type === 'school') {
|
||||||
$columns = $columns->merge([
|
$columns = $columns->merge([
|
||||||
|
|||||||
Reference in New Issue
Block a user