From e56d535814459f7b38c1e2392bc54341a5e34622 Mon Sep 17 00:00:00 2001 From: Samuel De Backer Date: Thu, 4 Apr 2019 12:01:40 +0200 Subject: [PATCH] Pagination --- src/Http/Controllers/PublicController.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Http/Controllers/PublicController.php b/src/Http/Controllers/PublicController.php index bc5431e..d6c00ff 100644 --- a/src/Http/Controllers/PublicController.php +++ b/src/Http/Controllers/PublicController.php @@ -20,9 +20,7 @@ public function __construct(EloquentNews $news) */ public function index() { - $page = request('page'); - $perPage = config('typicms.news.per_page'); - $models = $this->repository->paginate($perPage, ['*'], 'page', $page); + $models = $this->repository->paginate(config('typicms.news.per_page')); return view('news::public.index') ->with(compact('models'));