Skip to content

Commit

Permalink
order
Browse files Browse the repository at this point in the history
  • Loading branch information
sdebacker committed Oct 10, 2019
1 parent 5142a9e commit 1a93af6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Http/Controllers/PublicController.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ public function __construct(Calendar $calendar)

public function index(): View
{
$query = Event::published()->with('image');
$query = Event::published()
->order()
->with('image');
if (!request('preview')) {
$query->published();
}
Expand Down

0 comments on commit 1a93af6

Please sign in to comment.