Support the ongoing development of Laravel.io →
posted 8 years ago
Architecture
Last updated 1 year ago.
0

Did you ever get a response?

0

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

Last updated 8 years ago.
0

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']),
        ]);
Last updated 8 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

sesc360 sesc360 Joined 16 Mar 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.