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
Post a Comment