From 85e104adfdc3aff1d5a654dd7b4c588d1f0caa8b Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Mon, 20 May 2019 00:44:50 -0500 Subject: [PATCH] added new features to the admin panel --- app/Http/Controllers/Dashboard/AdminController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Dashboard/AdminController.php b/app/Http/Controllers/Dashboard/AdminController.php index 93ce992e3..b43dde9f5 100644 --- a/app/Http/Controllers/Dashboard/AdminController.php +++ b/app/Http/Controllers/Dashboard/AdminController.php @@ -87,7 +87,7 @@ class AdminController extends Controller * Example: userArrs[0]['name'] = Minerva Arbosa * userArrs[0]['permissions'] = ['admin', 'contract.admin', superuser] */ - $users = User::all()->orderBy('name', 'desc')->toArray(); + $users = User::all()->soryByDesc('name')->toArray(); foreach($users as $user) { $permissions = UserPermission::where([ 'character_id' => $user['character_id'],