]> BookStack Code Mirror - bookstack/blobdiff - app/Http/Controllers/HomeController.php
Added limit to books shown on homepage and make alphabetical
[bookstack] / app / Http / Controllers / HomeController.php
index 3f5d338de2842d670209c36afee456da499994f6..d0eb163996e79d423c587b146ff90575127dcad8 100644 (file)
@@ -36,7 +36,7 @@ class HomeController extends Controller
      */
     public function index()
     {
-        $books = $this->bookRepo->getAll();
+        $books = $this->bookRepo->getAll(10);
         $activity = $this->activityService->latest();
         return view('home', ['books' => $books, 'activity' => $activity]);
     }