Skip to content

Instantly share code, notes, and snippets.

View emeka-osuagwu's full-sized avatar
🔥
Working from home

Emeka Osuagwu emeka-osuagwu

🔥
Working from home
View GitHub Profile
@tprinty
tprinty / Adding Logging to Laravel Authentication
Last active March 21, 2024 18:01
Add Logging to Lavavel Authentication
Here is a quick way to add authentication logging to Laravel.
1. Modify app/Providers/EventServiceProvider.php and add lines 16 through 32 of the example file in this GIST.
2. Create a new file app/Listeners/LogActivity.php and copy the contents of the file below into that file.
3. Enjoy logging.