]> BookStack Code Mirror - bookstack/blobdiff - app/Entities/Repos/BookshelfRepo.php
Docker: Fix PHP tests
[bookstack] / app / Entities / Repos / BookshelfRepo.php
index b15241fb388735f666ebe3f86ddc2a1f6eaa6911..649f4b0c461c0b461701bd26508af44fe0ab43c2 100644 (file)
@@ -30,7 +30,7 @@ class BookshelfRepo
     public function getAllPaginated(int $count = 20, string $sort = 'name', string $order = 'asc'): LengthAwarePaginator
     {
         return Bookshelf::visible()
-            ->with('visibleBooks')
+            ->with(['visibleBooks', 'cover'])
             ->orderBy($sort, $order)
             ->paginate($count);
     }