core icon indicating copy to clipboard operation
core copied to clipboard

current url

Open oscarlosan opened this issue 3 years ago • 3 comments

Hello, How can I get the current url?

try: Flight::route ();

oscarlosan avatar Apr 27 '21 16:04 oscarlosan

https://flightphp.com/learn#requests

$url = Flight::request()->query['url'];

or

$url = Flight::request()->query->url;

magikstm avatar Apr 27 '21 19:04 magikstm

magikstm thank you very much for the reply. This framework is incredible. I am flying with this framework. It is much better than F3 and Lumen. Super intuitive.

oscarlosan avatar Apr 27 '21 21:04 oscarlosan

what difference is there with: Flight::router()->current ();

oscarlosan avatar May 12 '21 09:05 oscarlosan