This commit is contained in:
Benjamin Takats
2023-01-21 19:20:11 +01:00
parent f150c3c165
commit 50f84821ca

View File

@@ -75,6 +75,10 @@ class LibraryTable extends Component
fn($query) => $query
->where('libraries.name', $this->currentTab)
)
->orWhereHas('libraries',
fn($query) => $query
->where('libraries.parent_id', $parentLibrary->id)
)
)
->when(count($this->filters) > 0, fn($query) => $query->whereHas('tags',
fn($query) => $query->whereIn('tags.id', $this->filters)))