TIP 06 / 73

Redirect Away from Laravel App.

Sometimes, you might need to redirect away from your Laravel application to other websites. In that case, there is a handy away method you can call on the redirect() method...

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

It creates a RedirectResponse without any additional URL encoding, validation, or verification.