How to redirect to external link with laravel 5?

By Hardik Savani | May 9, 2016 | | 4019 Viewer | Category : Laravel


Share this post:



Sometimes you may need to redirect on external URL from our laravel 5 application like if you use something like Amazon API, Paypal API etc. so, Laravel 5 provide away() for redirect other external link for return redirect like bellow example:

Example:

return redirect()->away('http://www.google.com');