I want php to return the $users not in a single line as:
[{"id":1,"name":"xxxx","email":"xxxx@yyyy.com","email_verified_at":null,"password":"xyzxyz","remember_token":null,"created_at":null,"updated_at":null}]
I would like to have it in the following manner:
[
{
"id":1,
"name":"xxxx",
"email":"xxxx@yyyy.com",
"email_verified_at":null,
"password":"xyzxyz",
"remember_token":null,
"created_at":null,
"updated_at":null
}
]
How can I make that happen, please?