The generated link do not contains querystring
當 request 包含 querystring 時,例如 api/slots?sort=time&limit=5&page=2
,回傳的 JSON 中的 meta.links
及 links
並不會包含除 page 之外的 querystring。
{
"links": {
"first": "http://localhost:8080/api/slots?page=1",
"last": "http://localhost:8080/api/slots?page=3",
"prev": "http://localhost:8080/api/slots?page=1",
"next": "http://localhost:8080/api/slots?page=3"
},
"meta": {
"current_page": 2,
"from": 6,
"last_page": 3,
"links": [
{
"url": "http://localhost:8080/api/slots?page=1",
"label": "pagination.previous",
"active": false
},
{
"url": "http://localhost:8080/api/slots?page=1",
"label": "1",
"active": false
},
{
"url": "http://localhost:8080/api/slots?page=2",
"label": "2",
"active": true
},
{
"url": "http://localhost:8080/api/slots?page=3",
"label": "3",
"active": false
},
{
"url": "http://localhost:8080/api/slots?page=3",
"label": "pagination.next",
"active": false
}
],
"path": "http://localhost:8080/api/slots",
"per_page": 5,
"to": 10,
"total": 15
}
}