Laravel Tutorials / updated: August 06, 2014

Redirect Back and Controller Reusability

Ryan Tablada makes the argument that using Redirect::back() can be dangerous and should be avoided unless you know what you are expecting.

All of my apps are built for the browser and I have absolutely no worries about redirecting back after a validation failure. CSRF is used to prevent cross site POST so I feel comfortable it’s going to do what I think it is.

Laravel News Partners

Newsletter

Join the weekly newsletter and never miss out on new tips, tutorials, and more.