--- title: 'You can track logins and logouts for auditing purposes using Laravel''s native auth events' tweet_id: '1489620171241050112' thread_slug: weekly-thread-2022-05 author_username: mattkingshott images: - 'https://pbs.twimg.com/media/FKlsjn1WQAU_Xg2.jpg' created_at: 2022-02-04T15:21:39+00:00 slug: you-can-track-logins-and-logouts-for-auditing-purposes-using-laravels-native-auth-events --- 🔥 #Laravel Tip: Tracking logins and logouts for auditing or security purposes is incredibly easy thanks to Laravel’s login and logout events. Simply listen for them in a service provider and respond when they are fired.