@vincent15000 Shure:
{
"data": [
{
//some of key-value attributes
},
{
//some of key-value attributes
}
],
"links": {
"first": "http://site/path?p=1",
"last": "http://site/path?p=353",
"prev": null,
"next": "http://site/path?p=2"
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 353,
"path": "http://path",
"per_page": 10,
"to": 10,
"total": 3529
}
}
So, I need this for each of group, i.e.:
{
"bars": {
"data": [
{
//some of key-value attributes
},
{
//some of key-value attributes
}
],
"links": {
"first": "http://site/bars?p=1",
"last": "http://site/bars?p=353",
"prev": null,
"next": "http://site/bars?p=2"
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 353,
"path": "http://site/bars",
"per_page": 10,
"to": 10,
"total": 3529
}
},
"pages": {
"data": [
{
//some of key-value attributes
},
{
//some of key-value attributes
}
],
"links": {
"first": "http://site/pages?p=1",
"last": "http://site/pages?p=254",
"prev": null,
"next": "http://site/pages?p=2"
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 254,
"path": "http://site/pages",
"per_page": 10,
"to": 10,
"total": 2312
}
},
//etc
}