inertia-laravel
inertia-laravel copied to clipboard
All Inertia requests must receive a valid Inertia response, however a plain JSON response was received.
trafficstars
Hello everyone.
I have an error for a long time and I have not been able to solve it. Note in search of a solution to this problem, I noticed that this only happens to me on the CPANEL production server, the same page was uploaded to a shared server in hostinger and everything was fine.
I already checked the installed PHP extensions and I have not found the solution to this problem.

Route

Method Controller

If I remove the paginate() method and replace it with limit() and get() it works.
Link
