andersao/l5-repository

Filter doesn't work with presenter

開放

#449 建立於 2017年10月8日

 (4 則留言) (0 個反應) (0 位負責人)PHP (882 個分叉)batch import
help wanted

倉庫指標

星標
 (4,198 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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.

貢獻者指南