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

eskiesirius's avatar

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,
        ]);
    }
0 likes
5 replies
MohamedTammam's avatar

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.

MohamedTammam's avatar

@eskiesirius You're passing the list into the route methods, is this correct?

route('customers.merge.prepare',{ customers: this.mergeCustomerList })

Please or to participate in this conversation.