this is my input data for the transformer.
array:3 [▼
0 => {#405 ▼
+"day": 24
+"month": 5
+"name_cz": "Jana"
}
1 => {#404 ▼
+"day": 24
+"month": 6
+"name_cz": "Jan"
}
2 => {#406 ▼
+"day": 6
+"month": 7
+"name_cz": "Upálení mistra Jana Husa"
}
]
And this is my transformer $this->item($dates, new DateTransformer());
I need to pass this data to the transformer and process it nut array is not accepted by transformer. How can I pass data to the transformer or multiple instances of Eloquent? Thank you
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire