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

I read something somewhere about paginate and caching, but I can't seem to find where.

Try removing it (if you can) or convert it to an array

return Employee::orderBy('id');

\\ or

return Employee::orderBy('id')->paginate(5)->toArray();

Hope that helps

0

Sign in to participate in this thread!

Eventy

Your banner here too?

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.