Level 102
Sounds like you are passing the data to route() instead of post(). If in doubt show an example that doesn't work
Inertia.post(route('foo', data)); //data goes in url
Inertia.post(route('foo'), data); //data goes in body
1 like
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello,
Using Inertia::post() and Inertia::put(), are the datas always passed as URL paramaters ?
With POST and PUT methods, it's usually suggested (as a best pratice) to pass the params in the body of the request and not in the URL.
Would InertiaJS not respect the best pratices ?
Or perhaps I have something wrong in my code ...
Thanks for your answer ;).
Vincent
Sounds like you are passing the data to route() instead of post(). If in doubt show an example that doesn't work
Inertia.post(route('foo', data)); //data goes in url
Inertia.post(route('foo'), data); //data goes in body
Please or to participate in this conversation.