andersao/l5-repository

Filter doesn't work with presenter

Open

#449 建立於 2017年10月8日

在 GitHub 查看
 (4 留言) (0 反應) (0 負責人)PHP (4,119 star) (868 fork)batch import
help wanted

描述

when i use presenter in repository class getting this result :

{{Url}}/bazaars?token={{token}}&filter=id;name

{
    "data": [
        {
            "id": 1,
            "name": "temp",
            "address": null,
            "city": null,
            "province_id": null
        },
        {
            "id": 2,
            "name": "temp1",
            "address": null,
            "city": null,
            "province_id": null
        }
]

but i need this:

{
    "data": [
        {
            "id": 1,
            "name": "temp",
        },
        {
            "id": 2,
            "name": "temp1"
        }
]

and i'm using fractal transformer.

貢獻者指南