X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/e6ea53b3e68932deb2a38359af8cbc34d10735b0..refs/pull/2515/head:/app/Entities/Repos/BookshelfRepo.php diff --git a/app/Entities/Repos/BookshelfRepo.php b/app/Entities/Repos/BookshelfRepo.php index b15241fb3..649f4b0c4 100644 --- a/app/Entities/Repos/BookshelfRepo.php +++ b/app/Entities/Repos/BookshelfRepo.php @@ -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); }