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'));