1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 21:34:03 +00:00
laravel-tips/content/tips/you-can-track-logins-and-logouts-for-auditing-purposes-using-laravels-native-auth-events.md
2022-02-17 17:18:25 +01:00

11 lines
628 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
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 Laravels login and logout events. Simply listen for them in a service provider and respond when they are fired.