想要在发送Curl请求后获得重定向网址

I am sending a basic auth request to a site to log in a user. If they credentials are correct I want to show the dashboard. Therefore I need the redirectURL coming in "redirect_url" under "+curl: curl resource @212 ▼"

This is my code. And I want to get the redirect url in $redirectUrl 1

$curl = new Curl\Curl();
$curl->post('https://xyz.ryver.com/application/login', array(
    'username' => 'xyza@xyz.com',
    'password' => 'mypass',
));

$redirectUrl= ""; //store redirecting URL here
return redirect($redirectUrl);

I want to get this "redirect_url"'s value 2

Try this code

return redirect()->away('https://www.your_url_here.com');

Hope this help.