Introducing Laravel Authentication Log

Laravel Authentication Log is a package which tracks your user's authentication information such as login/logout time, IP, Browser, Location, etc. as well as sends out notifications via mail, slack, or sms for new devices and failed logins.

AR
Anthony Rappa
1 min read - 9,479 views -

I just release Laravel Authentication Log which tracks your user's authentication information such as login/logout time, IP, Browser, Location, etc. as well as sends out notifications via mail, slack, or sms for new devices and failed logins.

It's pretty plug and play. Just install and add a trait to the authenticable models you want to track.

It keeps a log of a user's authentication activity (Socialite included), as well as sends them emails about their activity (currently new device and failed logins with more to come).

Here are an example of those e-mails:

As you can see it also (optionally) logs the user's location at the time using the torann/geoip package, marks if the user was successful at authenticating or not, as well as marks if the user cleared the sessions themselves using Laravel's logoutOtherBrowsers functionality.

I also included an example Livewire Tables table in the read me if you would like to output the log which would look like this:

I hope you get some good use out of it. Check back soon for updates as I have more functionality in the pipeline.

Read next

What's New in Laravel: 8.58 - 8.68

Are you like me and find it impossible to find the time to keep up with the changes in Laravel on a weekly basis? In this series I'll try to roll them up periodically into one post.

AR
3 min read - 6,562 views -

Jetstream 4, Filament 3 Template

A fresh installation of Laravel 10 with a Filament 3 backend and Jetstream 4 frontend. Tons of packages pre-installed and configured including roles/health/backups/timezones/settings/impersonation and more.

AR
1 min read - 6,189 views -