Thursday, March 2, 2017

Laravel allow route to be accessible only from another route

I have '/signup/select-plan' which lets the user select a plan, and '/signup/tos' which displays the terms of services. I want '/signup/tos' to be only accessible from '/signup/select-plan'. So if I try to go directly to '/signup/tos' without selecting a plan, I want it to not allow it. How do I go about this?



via Paul Lucero

Advertisement