Posts Learn Components Snippets Categories Tags Tools About

How to Redirect to External URL in Laravel

Learn how to easily redirect to an external URL in your Laravel application with return redirect helper function

Created on Jan 26, 2022


Redirecting to an external URL in Laravel is quite straight forward but sometimes it might be hard for new Laravel developers that have not explored. To redirect the user to and external URL you can call the "away" function that's available after chaining the redirect() function.

return redirect()->away('');

If you like our tutorial, do make sure to support us by being our Patreon or buy us some coffee ☕️

Load comments for How to Redirect to External URL in Laravel


PostSrc Code Components

Collection of Tailwind CSS components for everyone to use. Browse all of the components that are right for your project.

View Components

Sponsors 👑

+ Add Yours