remove all the lines from your returned array and re-add one by one until the code breaks. that line has the bug. this is not laravel just basic php
I think that when you use pagination, after you transform toArray() , your data is under the "data" key.. so..
return $this->respondWithPagination($incidents, [
'data' => $this->incidentTransformer->transformCollection($incidents->toArray()['data']),
]);
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community