fixed admin users
This commit is contained in:
parent
5d6a84a473
commit
f911ddbd68
|
|
@ -22,7 +22,8 @@ class AdminUserDetail extends JsonResource
|
|||
'name' => $this->name,
|
||||
'email' => $this->email,
|
||||
'locale' => $this->locale,
|
||||
'roles' => $this->roles->pluck('name')->toArray(),
|
||||
'roles' => $this->roles,
|
||||
'roles_name' => $this->roles->pluck('name')->toArray(),
|
||||
'created_at' => time_format($this->created_at),
|
||||
'updated_at' => time_format($this->updated_at),
|
||||
];
|
||||
|
|
|
|||
Loading…
Reference in New Issue