Added pagination to books page

This commit is contained in:
Dan Brown
2015-11-09 19:46:04 +00:00
parent ab6f6a5522
commit e5b9be2e76
4 changed files with 55 additions and 6 deletions

View File

@ -40,7 +40,7 @@ class BookController extends Controller
*/
public function index()
{
$books = $this->bookRepo->getAll();
$books = $this->bookRepo->getAllPaginated(10);
return view('books/index', ['books' => $books]);
}