diff --git a/src/Http/Controllers/PublicController.php b/src/Http/Controllers/PublicController.php index 1c36c8d..02a7b05 100644 --- a/src/Http/Controllers/PublicController.php +++ b/src/Http/Controllers/PublicController.php @@ -19,7 +19,7 @@ public function index(): View public function show($slug): View { - $model = Place::published()->bySlug($slug)->firstOrFail(); + $model = Place::published()->whereSlugIs($slug)->firstOrFail(); return view('places::public.show') ->with(compact('model'));