php - Register to an event after login / create account in Laravel -


i need send link email that:

http://laravel.dev:8000/events/{eventid}/register/ 

i put route inside auth middleware, if user not logged or has no account, user authentication page.

thing after login, system forgets initial wanted action ( register event ) , redirect user dashboard.

off course, problem more dificult when registering, because user needs register, receive mail, , then, when activates account, initial action should performed...

what best way perform kind of thing???

you can use laravel's session id (which set automatically) session::getid() , store initial wanted action database.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -