If you use Laravel, the request('code') will return the value of the code.
Dec 2, 2019
11
Level 2
How to retrieve data from ULR after redirect
Hey,
$url = self::ACCOUNT_URL . '/authorize?' . $this->buildUrl();
return redirect($url);
These two lines redirect me to a new page, and I'd like to retrieve one of the URL parameters, but can't seem to get it.
URL is like this: http://example.com/example?code=AQCr8fvYhAynSbRlfK
What I would like to get is the code value. I tried to get it with $_GET['code'] but couldn't.
Please or to participate in this conversation.