diff --git a/app/Http/Controllers/Api/UserController.php b/app/Http/Controllers/Api/UserController.php index 3a1a6ae..c5cbee8 100644 --- a/app/Http/Controllers/Api/UserController.php +++ b/app/Http/Controllers/Api/UserController.php @@ -82,6 +82,9 @@ public function userProfile() public function listUser(){ $users = User::all(); + foreach ($users as $user) { + $user->rol=User::find($user->id)->roles[0]->name; + } return response([ "status" => 1, "msg" => "!Lista de usuarios",