From ebcb93ee7d0755d5ee6218838cb487b633e2eb35 Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Mon, 20 May 2019 00:46:12 -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 0e4ced407..9881c95d7 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::orderBy('name', 'desc')->all()->toArray(); + $users = User::orderBy('name', 'desc')->toArray(); foreach($users as $user) { $permissions = UserPermission::where([ 'character_id' => $user['character_id'],