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.

贡献者指南