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
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community