You're doing something wrong. post requests don't add data to the URL. Maybe you're calling a wrong font-end method. Or used get request but didn't update the URL, etc.
Aug 4, 2023
5
Level 7
Inertia Post Displays Query String
Just wondering why post request displays query string? https://prnt.sc/6rcrsqeFNHRH
Here is the method for button in my vue
mergePrepare() {
Inertia.post(route('customers.merge.prepare',{ customers: this.mergeCustomerList }))
}
My controller
/**
* @param MergeCustomerRequest $request
* @return \Inertia\Response
*/
public function mergePrepare(MergeCustomerRequest $request)
{
$customers = $this->customer_service->getMergeCustomer($request->customers);
return Inertia::render('Customer/Merge', [
'customers' => $customers,
]);
}
Please or to participate in this conversation.