DEV Community

Al-Amin Islam
Al-Amin Islam

Posted on

Redirecting to External Domains from Laravel

Sometimes you may need to redirect to a domain outside of your application. You may do so by calling the away method, which creates a RedirectResponse without any additional URL encoding, validation, or verification:

return redirect()->away('https://www.google.com');
Enter fullscreen mode Exit fullscreen mode

Top comments (0)