Skip to content

Commit

Permalink
scopeWhereSlugIs
Browse files Browse the repository at this point in the history
  • Loading branch information
sdebacker committed Sep 3, 2019
1 parent b7f349f commit 79dbe54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Http/Controllers/PublicController.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function show($slug): View
'images',
'documents',
])
->bySlug($slug)
->whereSlugIs($slug)
->firstOrFail();

return view('events::public.show')
Expand All @@ -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);
Expand Down

0 comments on commit 79dbe54

Please sign in to comment.