Level 56
Redirect::to('route', ['step' => 'dates']);
1 like
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi everyone,
I'm trying to make a redirection and add get parameters (I don't want to use Session::flash() for some reasons).
I'm not sure to understand how this can be done. When I try to do it like this :
Redirect::to('route')->with('step', 'dates') It adds the parameters into the session, but what I need is to redirect to the url :
/route?step=dates
Do you have any idea how this can be done ?
Please or to participate in this conversation.