split into modules

This commit is contained in:
Benjamin Takats
2022-12-12 16:21:10 +01:00
parent 40bc58eea2
commit 931b28907d
35 changed files with 259 additions and 309 deletions

View File

@@ -145,7 +145,7 @@ class LibraryItemTable extends DataTableComponent
{
$shouldBePublic = request()
->route()
->getName() !== 'library.lecturer';
->getName() !== 'library.table.lecturer';
return LibraryItem::query()
->whereHas('libraries', fn($query) => $query->where('libraries.is_public', $shouldBePublic))