Skip to content

Commit

Permalink
scopeBySlug changed to scopeWhereSlugIs
Browse files Browse the repository at this point in the history
  • Loading branch information
sdebacker committed Sep 3, 2019
1 parent 256d700 commit 1978681
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Controllers/PublicController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand Down

0 comments on commit 1978681

Please sign in to comment.