i am trying to hook to the login even in my L5 app to set last login time and IP address. i can make it work with the following:
Event::listen(\'auth.login\'
just did it this way
listen('auth.login', function() { DB::table('users') -> where('id', Auth::id()) -> update(array( 'last_login' => date('Y-m-d H:i:s') )); }); // } }