Home Laravel How to Redirect to External Link with Laravel?

How to Redirect to External Link with Laravel?

by Shahriar Sagor

Today now in this example i will show you How to Redirect to External Link with Laravel? Sometimes we may need to redirect on an external URL from our laravel application as like if we are use something like the Amazon API, Paypal API or etc. So, Laravel provide us away() for the redirect to other external link for the return redirect as like as the bellow example:

Example:

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

Read Also: Generate Captcha code and Validation by using BotDetect package in laravel

Thanks for read. I hope it help you. For more you can follow us onĀ facebook

close

You may also like