I need to set some session variables when the user logs into the backend. A logical choice would be to listen for the backend.user.login
event in my plugins boot()
method, but for some reason it does not work (no sure if it is supposed to)
Event::listen('backend.user.login', function($user) {
# do something
});
So the question is, how can I execute some code when the user logs in?