From 3873be18ab423dd7ae567b40a20e809a3cb10c96 Mon Sep 17 00:00:00 2001 From: Jason Huebel Date: Fri, 5 Jul 2019 09:48:51 -0500 Subject: [PATCH] fixed getting user list for modal selects when deleting a user --- app/Http/Controllers/UsersController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/UsersController.php b/app/Http/Controllers/UsersController.php index 2344bc10a..5f210943a 100644 --- a/app/Http/Controllers/UsersController.php +++ b/app/Http/Controllers/UsersController.php @@ -47,7 +47,8 @@ public function __construct( */ public function index() { - return view('users.index')->withUsers($this->users); + return view('users.index') + ->with('users', User::select('id', 'name')->orderBy('name')->get()); } public function users()