Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

HarengaWoltraz's avatar

Route with multiple parameter InertiaJS

I am using Laravel 8 with InertiaJS stack.

I am using model binding on route and resource controller.

is it possible to send multiple parameter on route() function in inertia?

I cant get the request (this.form) send by this.$inertia.put(route("rooms.update", this.form));

this is my function in the controller

/** * Update the specified resource in storage. * * @param \Illuminate\Http\Request $request * @param \App\Models\Room $room * @return \Illuminate\Http\Response */ public function update(Request $request, Room $room) { dd($room, $request->all()); } this is inertia method on vue file

this.$inertia.put(route("rooms.update", this.form));

0 likes
1 reply

Please or to participate in this conversation.