From c5e9e4e378519663fdf2edd2d699a17af6ce0b72 Mon Sep 17 00:00:00 2001 From: Vincent BRIDIER Date: Wed, 21 Sep 2022 15:32:20 +0200 Subject: [PATCH] Add order by on service account index --- app/Http/Controllers/ServiceAccountsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/ServiceAccountsController.php b/app/Http/Controllers/ServiceAccountsController.php index 6bc65f1..c1f98f9 100644 --- a/app/Http/Controllers/ServiceAccountsController.php +++ b/app/Http/Controllers/ServiceAccountsController.php @@ -16,7 +16,7 @@ class ServiceAccountsController extends Controller */ public function index() { - $service_accounts = ServiceAccount::all(); + $service_accounts = ServiceAccount::all()->sortBy('name'); return view('service-accounts.index', compact('service_accounts')); }