add rol al list user

This commit is contained in:
cgonzalesmo 2022-10-27 17:04:17 -05:00
parent 1d614acb12
commit 67e10a43c3

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