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));