This commit is contained in:
Christian Dacid Sullca Puma 2022-10-27 20:55:58 -05:00
commit 0682f9c375

View File

@ -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",