Any POST or GET params are available through the Request object:
request('redirect_flow_id')
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi guys, not sure how this will/would work, but is it possible to load data params from a URL into a controller?
Im working with gocardless API and i need to get a url param into my controller, since its dynamic, this is what i have from the API documentation in my controller :
$redirectFlow = $client->redirectFlows()->complete(
"SOME-REFERENCE-HERE", //The redirect flow ID from above.
["params" => ["session_token" => "dummy_session_token"]]
);
The URL is returned with :
?redirect_flow_id=SOME-REFERENCE-HERE
So i need to take it from the URL and pop it into my controller, or have i misunderstood this?
Many thanks in advance!
Any POST or GET params are available through the Request object:
request('redirect_flow_id')
Please or to participate in this conversation.