Merge branch 'master' of https://github.com/csullcap/PIS-proyect
This commit is contained in:
commit
0682f9c375
@ -82,6 +82,9 @@ public function userProfile()
|
|||||||
|
|
||||||
public function listUser(){
|
public function listUser(){
|
||||||
$users = User::all();
|
$users = User::all();
|
||||||
|
foreach ($users as $user) {
|
||||||
|
$user->rol=User::find($user->id)->roles[0]->name;
|
||||||
|
}
|
||||||
return response([
|
return response([
|
||||||
"status" => 1,
|
"status" => 1,
|
||||||
"msg" => "!Lista de usuarios",
|
"msg" => "!Lista de usuarios",
|
||||||
|
Loading…
Reference in New Issue
Block a user