mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
fix eager
This commit is contained in:
@@ -12,9 +12,8 @@ use Rappasoft\LaravelLivewireTables\Views\Filters\MultiSelectFilter;
|
||||
class CourseTable extends DataTableComponent
|
||||
{
|
||||
public string $country;
|
||||
|
||||
protected $model = Course::class;
|
||||
public string $tableName = 'courses';
|
||||
protected $model = Course::class;
|
||||
|
||||
public function configure(): void
|
||||
{
|
||||
@@ -89,6 +88,10 @@ class CourseTable extends DataTableComponent
|
||||
public function builder(): Builder
|
||||
{
|
||||
return Course::query()
|
||||
->with([
|
||||
'lecturer',
|
||||
'tags',
|
||||
])
|
||||
->withCount([
|
||||
'courseEvents',
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user