From b27d983fe6e28abf6c823c4eccf00c3c33eeed95 Mon Sep 17 00:00:00 2001 From: Deon George Date: Fri, 20 Dec 2024 16:06:38 +0700 Subject: [PATCH] Order dashboard systems by name --- app/Models/User.php | 3 ++- resources/views/layouts/partials/sidebar.blade.php | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/Models/User.php b/app/Models/User.php index 3009f0a..7dff43f 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -70,7 +70,8 @@ class User extends Authenticatable implements MustVerifyEmail public function systems() { - return $this->belongsToMany(System::class); + return $this->belongsToMany(System::class) + ->orderBy('name'); } /* GENERAL METHODS */ diff --git a/resources/views/layouts/partials/sidebar.blade.php b/resources/views/layouts/partials/sidebar.blade.php index da30d76..c8b4535 100644 --- a/resources/views/layouts/partials/sidebar.blade.php +++ b/resources/views/layouts/partials/sidebar.blade.php @@ -1,3 +1,5 @@ +@use(App\Models\Domain) +