lab404/laravel-auth-checker
Larablocks Analysis
lab404/laravel-auth-checker works with Laravel 11 (latest release 3.0.0, May 19, 2024), which reached end of life on Mar 12, 2026: no more fixes, even for security.
Laravel 5 to 10 in earlier releases.
Recommendation checks
Not advisedNot advised: no release or commit in over 2 years.
- No release or commit in over 2 years
- Supports only Laravel 11, past end of life since Mar 12, 2026
- No release in the last 12 months (last: May 19, 2024)
- 668 downloads a month (needs 10,000)
- 220 GitHub stars (at least 100)
State
Likely abandoned- No release or commit in over 2 years.
- Last stable release: May 19, 2024.
- No releases in the last 12 months.
- First released: Mar 28, 2017.
- Monthly downloads: 668, up 50% from six months ago.
- 7 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Dec 3, 2026.
| Install | |
|---|---|
composer require lab404/laravel-auth-checker |
|
| Latest Version: | 3.0.0 |
| PHP: | ^8.2 |
| Laravel: | 11 |
| Older releases: | 5 – 10 |
| License: | MIT |
| Last Updated: | May 19, 2024 |
| Links: | GitHub · Packagist |
Laravel Auth Checker
Laravel Auth Checker is a plugin to collect login info and devices used when a user authenticates. It makes it easy to catch user authentication attempts and lockouts from new IP address or new devices.

Requirements
| Version | Release |
|---|---|
| 11 | 3.0 |
| 9, 10 | 2.0 |
| 8, 9 | 1.7 |
| 6, 7 | 1.6 |
Installation
- Require the package:
composer require lab404/laravel-auth-checker - Publish migration files:
php artisan vendor:publish --tag=auth-checker - Migrate your database:
php artisan migrate - Configure your
Authenticatablemodel (see below)
Usage
This library collects login data and devices data about your users.
Authenticatable model
Your Authenticatable model (usually User) must implement the HasLoginsAndDevicesInterface interface.
The trait HasLoginsAndDevices is provided with for a working default implementation.
use Lab404\AuthChecker\Models\HasLoginsAndDevices;
use Lab404\AuthChecker\Interfaces\HasLoginsAndDevicesInterface;
class User extends Authenticatable implements HasLoginsAndDevicesInterface
{
// ...
use HasLoginsAndDevices;
}
Once configured, you can access the following methods
logins()returns all loginsauths()returns all successful login attempsfails()returns all failed login attemptslockouts()returns all lockouts
Each login returned is associated with the Device model used
devices()returns all devices used by the user to authenticate.
Logins
Calling $user->logins outputs:
[
[
'ip_address' => '1.2.3.4',
'device_id' => 1, // ID of the used device
'type' => 'auth',
'device' => [
// See Devices
],
'created_at' => '2017-03-25 11:42:00',
],
// ...
]
Also, you can directly access logins by their type
$user->auths, returns successful logins (viaLogin::TYPE_LOGIN)$user->fails, returns failed logins (viaLogin::TYPE_FAILED)$user->lockouts, returns locked out logins (viaLogin::TYPE_LOCKOUT)
Devices
Calling $user->devices outputs:
[
[
'platform' => 'OS X',
'platform_version' => '10_12_2',
'browser' => 'Chrome',
'browser_version' => '54',
'is_desktop' => true,
'is_mobile' => false,
'language' => 'fr-fr',
'login' => [
// See logins
],
],
// ...
]
Events
There are many events available that can be used to add features to your app
LoginCreatedis fired when a user authenticates.DeviceCreatedis fired when a new device is created for a user.FailedAuthis fired when a user fails to log in.LockoutAuthis fired when authentication is locked for a user (too many attempts).
Each event passes a Login model and a Device model to your listeners.
Tests
vendor/bin/phpunit
Contributors
- MarceauKa
- and all others contributors
Licence
MIT
Alternatives to lab404/laravel-auth-checker
Base authenticatable User model, migration, factory and observer shared by the j...
Session management in Laravel apps, user notifications on new access, support fo...
A powerful Laravel package for integrating Toon functionality into your Laravel...
A vigilant authentication logging and security package for Laravel 10-13 (PHP 8....
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| 3.0.0 | ^8.2 | ^11.0 | MIT | |
| 2.0.0 | ^8.0 | ^9.0| | MIT | |
| 1.7.0 | ^7.3| | ^8.0| | MIT | |
| 1.6.2 | >=7.2 | ^6.0 | | MIT | |
| 1.6.1 | >=7.2 | ^6.0 | | MIT | |
| 1.6.0 | >=7.2 | ^6.0 | | MIT | |
| 1.5.2 | ^7.2 | ^6.0 | MIT | |
| 1.5.1 | ^7.2 | ^6.0 | MIT | |
| 1.5.0 | ^7.2 | ^6.0 | MIT | |
| 1.4.2 | ^7.2 | ^6.0 | MIT | |
| 1.4.1 | ^7.2 | ^6.0 | MIT | |
| 1.4.0 | ^7.2 | ^6.0 | MIT | |
| 1.3.0 | ^7.2 | ^6.0 | MIT | |
| 1.2.0 | ^7.1.3 | >=5.8 | MIT | |
| 1.1.2 | >=5.4 | MIT | ||
| 1.1.1 | 5.4.* | MIT | ||
| 1.1.0 | 5.4.* | MIT | ||
| 1.0.2 | 5.4.* | MIT | ||
| 1.0.1 | 5.4.* | MIT | ||
| 1.0.0 | 5.4.* | MIT |
