Skip to content

Commit

Permalink
added sort_order
Browse files Browse the repository at this point in the history
  • Loading branch information
marispro authored Oct 21, 2021
1 parent f948d9b commit 0e7293d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DashboardManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function renderNavigation(): ?View
protected function resolveDashboards(): Collection
{
return once(static function () {
return DashboardModel::all()
return DashboardModel::orderBy('sort_order')->get()
->filter(fn(DashboardModel $dashboard) => $dashboard->authorizedToSee(request()))
->mapInto(CustomDashboard::class);
});
Expand Down

0 comments on commit 0e7293d

Please sign in to comment.