andersao/l5-repository

Filter doesn't work with presenter

Open

#449 aberto em 8 de out. de 2017

Ver no GitHub
 (4 comments) (0 reactions) (0 assignees)PHP (868 forks)batch import
help wanted

Métricas do repositório

Stars
 (4.119 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

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.

Guia do colaborador