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

857 views

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.
<?php

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

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

)