Skip to content

Commit

Permalink
fixed getting user list for modal selects when deleting a user
Browse files Browse the repository at this point in the history
  • Loading branch information
jhuebel committed Jul 5, 2019
1 parent ec39e05 commit 3873be1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/Http/Controllers/UsersController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

1 comment on commit 3873be1

@jhuebel
Copy link
Contributor Author

@jhuebel jhuebel commented on 3873be1 Jul 5, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixes #120

Please sign in to comment.