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