From 9b47c98ae87b3d244d766ea8cd0dff0e0f006074 Mon Sep 17 00:00:00 2001 From: Samuel De Backer Date: Wed, 4 May 2022 10:24:56 +0200 Subject: [PATCH] config path --- src/Http/Controllers/PublicController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Http/Controllers/PublicController.php b/src/Http/Controllers/PublicController.php index 8bf3440..103258f 100644 --- a/src/Http/Controllers/PublicController.php +++ b/src/Http/Controllers/PublicController.php @@ -28,7 +28,7 @@ public function index(): View ->with('image') ->orderBy('start_date') ->where('end_date', '>=', date('Y-m-d')) - ->paginate(config('typicms.events.per_page')); + ->paginate(config('typicms.modules.events.per_page')); return view('events::public.index') ->with(compact('models')); @@ -40,7 +40,7 @@ public function past(): View ->with('image') ->orderBy('end_date', 'desc') ->where('end_date', '<', date('Y-m-d')) - ->paginate(config('typicms.events.per_page')); + ->paginate(config('typicms.modules.events.per_page')); return view('events::public.past') ->with(compact('models'));