[Vuejs]-How to pass parameters with Inertia to Laravel controller?

0👍

The answer was that Laravel doesn’t handle PUT requests with files. Once changed to POST, and a custom route handler was added everything went fine.

0👍

If you not modified route key or key name

you can change this.route( to route( and pass id like this.sample.id

...
route("cms.products.sample.update", {
   sample: this.sample.id,
}),
...

Leave a comment