Added limit to books shown on homepage and make alphabetical

This commit is contained in:
Dan Brown
2015-11-09 20:39:06 +00:00
parent e5b9be2e76
commit 76eb8fc5d7
3 changed files with 6 additions and 3 deletions

View 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]);
}