[
{
"id": 1,
"name": "john",
"email": "[email protected]",
"created_at": "2016-12-19 09:24:10",
"updated_at": "2016-12-19 09:24:10",
"roles": [
{
"id": 1,
"name": "owner",
"display_name": "Project Owner",
"description": "User is the owner of a given project",
"created_at": "2016-12-19 09:20:50",
"updated_at": "2016-12-19 09:20:50",
"pivot": {
"user_id": 1,
"role_id": 1
},
"perms": [
{
"id": 1,
"name": "create-post",
"display_name": "Create Posts",
"description": "create new blog posts",
"created_at": "2016-12-19 09:27:45",
"updated_at": "2016-12-19 09:27:45",
"pivot": {
"role_id": 1,
"permission_id": 1
}
},
{
"id": 2,
"name": "edit-user",
"display_name": "Edit Users",
"description": "edit existing users",
"created_at": "2016-12-19 09:27:45",
"updated_at": "2016-12-19 09:27:45",
"pivot": {
"role_id": 1,
"permission_id": 2
}
}
]
}
]
}
]