Skip to content
This repository has been archived by the owner on Apr 7, 2018. It is now read-only.

Commit

Permalink
Fix #110: Backend ordenen van kalender datums
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Joosten authored and Tim Joosten committed Mar 27, 2018
1 parent 97a2245 commit 1704f51
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/Http/Controllers/Backend/CalendarController.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ public function __construct(CalendarRepository $calendarRepository, EventsReposi
public function index(): View
{
return view('backend.calendar.index', [
'events' => $this->eventRepository->entity()->with(['dates'])->simplePaginate(15),
'events' => $this->eventRepository->entity()->with(['dates'=> function ($query) {
$query->orderBy('start_date', 'DESC');
}])->simplePaginate(15),
]);
}

Expand Down

0 comments on commit 1704f51

Please sign in to comment.