andersao/l5-repository

Filter doesn't work with presenter

Open

#449 aperta il 8 ott 2017

Vedi su GitHub
 (4 commenti) (0 reazioni) (0 assegnatari)PHP (868 fork)batch import
help wanted

Metriche repository

Star
 (4119 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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.

Guida contributor