'send data inertia to laravel controller

I make a drag and drop sortable list in inertia like this :

      <draggable 
        v-model="articles.data" 
        group="people" 
        @start="drag=true" 
        @end="drag=false" 
        item-key="id"
        :component-data="getComponentData()">
        <template #item="{element}">
          <div>{{element.title}}</div>
        </template>
      </draggable>

and i want to send the result order to my laravel controller, so i try this :

function handleChange() {
  Inertia.post('/TierList/update/', props.articles.data)
}

I was thinking i will get this in my request like this :

public function update(Request $request)
{
    dd("update", $request);
}

but i have nothing. this is what my dump send :

"update"
Illuminate\Support\Facades\Request {#1122} 

I know it is probably the wrong way, but with many search i'm still screwed up, if someone can send me some tips.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source