From 19786816b77e8bd61a1a3db19c1eeda6587434d2 Mon Sep 17 00:00:00 2001 From: Samuel De Backer Date: Tue, 3 Sep 2019 17:26:25 +0200 Subject: [PATCH] scopeBySlug changed to scopeWhereSlugIs --- src/Http/Controllers/PublicController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'));