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:
@@ -27,8 +27,8 @@ class BookCaseTable extends DataTableComponent
|
||||
'date' => null,
|
||||
'comment' => '',
|
||||
];
|
||||
protected $model = BookCase::class;
|
||||
public string $tableName = 'bookcases';
|
||||
protected $model = BookCase::class;
|
||||
|
||||
public function configure(): void
|
||||
{
|
||||
@@ -121,6 +121,9 @@ class BookCaseTable extends DataTableComponent
|
||||
public function builder(): Builder
|
||||
{
|
||||
return BookCase::query()
|
||||
->with([
|
||||
'orangePills',
|
||||
])
|
||||
->withCount([
|
||||
'orangePills',
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user