Skip to main content
Quick Tip

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

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

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

Tip given by @Laratips1

Enjoyed This Tip?

Get access to all premium tutorials, video and text courses, and exclusive Laravel resources. Join our community of 10,000+ developers.

Recent Courses

We'd Love Your Feedback

Tell us what you like or what we can improve

Feel free to share anything you like or dislike about this page or the platform in general.