From 79dbe544333418cda7f96c72a8e7159b11d682ef Mon Sep 17 00:00:00 2001 From: Samuel De Backer Date: Tue, 3 Sep 2019 17:25:06 +0200 Subject: [PATCH] scopeWhereSlugIs --- 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 aec6f65..c9bda1d 100644 --- a/src/Http/Controllers/PublicController.php +++ b/src/Http/Controllers/PublicController.php @@ -54,7 +54,7 @@ public function show($slug): View 'images', 'documents', ]) - ->bySlug($slug) + ->whereSlugIs($slug) ->firstOrFail(); return view('events::public.show') @@ -64,7 +64,7 @@ public function show($slug): View public function ics($slug): Response { $event = Event::published() - ->bySlug($slug) + ->whereSlugIs($slug) ->firstOrFail(); $this->calendar->add($event);