fixed admin users

This commit is contained in:
Edward Yang 2022-08-16 14:00:38 +08:00
parent 5d6a84a473
commit f911ddbd68
1 changed files with 2 additions and 1 deletions

View File

@ -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),
];