]> BookStack Code Mirror - bookstack/blobdiff - app/Entities/Repos/BookRepo.php
Docker: Fix PHP tests
[bookstack] / app / Entities / Repos / BookRepo.php
index 68d62887b72293b1717468cae9b5e6430acc505d..27d0b407541d02857d8aec46cadbeb71cf7bc840 100644 (file)
@@ -35,7 +35,7 @@ class BookRepo
      */
     public function getAllPaginated(int $count = 20, string $sort = 'name', string $order = 'asc'): LengthAwarePaginator
     {
-        return Book::visible()->orderBy($sort, $order)->paginate($count);
+        return Book::visible()->with('cover')->orderBy($sort, $order)->paginate($count);
     }
 
     /**