How to Redirect to External Link with Laravel?

Share Me
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  

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

About code chef

My name is Shahriar sagor. I'm a developer. I live in Bangladesh and I love to write tutorials and tips that will help to other Developer's. I am a big fan of PHP, Javascript, JQuery, Laravel, Codeigniter, VueJS, AngularJS and Bootstrap from the early stage.

View all posts by code chef →