withType course

This commit is contained in:
Benjamin Takats
2023-01-16 00:46:59 +01:00
parent fe9f04ffc0
commit 0c27c8d37f

View File

@@ -40,6 +40,7 @@ class CourseTable extends DataTableComponent
MultiSelectFilter::make('Tag') MultiSelectFilter::make('Tag')
->options( ->options(
Tag::query() Tag::query()
->withType('course')
->get() ->get()
->mapWithKeys(fn($item, $key) => [$item->name => $item->name]) ->mapWithKeys(fn($item, $key) => [$item->name => $item->name])
->toArray() ->toArray()