I have a multi-step form. There are steps like : step 1 , step 2 ... step 5.
How can i check people should follow this steps ? Is there a way to check if he comes from previous-true url(step) or any other way ?
Thanks !
I have a multi-step form. There are steps like : step 1 , step 2 ... step 5.
How can i check people should follow this steps ? Is there a way to check if he comes from previous-true url(step) or any other way ?
Thanks !
URL::previous() will return the referrer url. If you want to prevent that they use cross-site request forgeries use laravel's csrf-protection. http://laravel.com/docs/5.1/routing#csrf-protection
if control like : if( URL::previous() == ) go to urlIf you want to use the previous URL in blade file, please use as follows:
{{ url()->previous() }}
For current path use as follows accordingly if the current path is:
Example: http://localhost:8000/brand/campaign/create/about
request()->Fullurl();
// http://localhost:8000/brand/campaign/create/about
request()->URL();
// http://localhost:8000/brand/campaign/create/about
request()->root();
// http://localhost:8000
request()->path();
// brand/campaign/create/about