mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
searchable
This commit is contained in:
@@ -52,10 +52,10 @@ class MeetupEventTable extends DataTableComponent
|
||||
->format(
|
||||
fn($value, $row, Column $column) => view('columns.meetup_events.name')->withRow($row)
|
||||
)
|
||||
->searchable()
|
||||
->searchable(fn($builder, $term) => $builder->where('meetups.name', 'ilike', '%'.$term.'%'))
|
||||
->sortable(),
|
||||
Column::make(__('Location'), 'location')
|
||||
->searchable()
|
||||
->searchable(fn($builder, $term) => $builder->where('location', 'ilike', '%'.$term.'%'))
|
||||
->sortable(),
|
||||
Column::make(__('Start'), 'start')
|
||||
->format(
|
||||
|
||||
@@ -39,7 +39,7 @@ class MeetupTable extends DataTableComponent
|
||||
->format(
|
||||
fn($value, $row, Column $column) => view('columns.meetups.name')->withRow($row)
|
||||
)
|
||||
->searchable()
|
||||
->searchable(fn($builder, $term) => $builder->where('meetups.name', 'ilike', '%'.$term.'%'))
|
||||
->sortable(),
|
||||
Column::make(__('Link'), 'link')
|
||||
->format(
|
||||
|
||||
Reference in New Issue
Block a user