Added inital phpstan/larastan setup

This commit is contained in:
Dan Brown
2021-11-05 16:18:06 +00:00
parent d0aa10a8c3
commit bc291bee78
20 changed files with 1086 additions and 124 deletions

View File

@@ -103,7 +103,7 @@ class ImageRepo
if ($filterType === 'page') {
$query->where('uploaded_to', '=', $contextPage->id);
} elseif ($filterType === 'book') {
$validPageIds = $contextPage->book->pages()->visible()->get(['id'])->pluck('id')->toArray();
$validPageIds = $contextPage->book->pages()->visible()->pluck('id')->toArray();
$query->whereIn('uploaded_to', $validPageIds);
}
};