Commit 89a4ef1f authored by Viral Solani's avatar Viral Solani

Change Role API Response

parent 76ef47c9
......@@ -18,8 +18,8 @@ class RoleResource extends Resource
return [
'id' => $this->id,
'name' => $this->name,
'permission' => ($this->all) ? 'All' : optional($this->permissions)->pluck('display_name'),
'noofuses' => $this->users->count(),
'permissions' => ($this->all) ? 'All' : optional($this->permissions)->pluck('display_name'),
'number_of_users' => $this->users->count(),
'sort' => $this->sort,
'status' => $this->status,
'registered_at' => $this->created_at->toIso8601String(),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment