Requirements
- PHP 8.2 or higher
- Laravel 11.x, 12.x, or 13.x
Use Laravel 12.69+ or 13.30+ for new installations. Laravel 11 compatibility is retained, but it has reached the end of security support and its framework has unpatched email validation, signed URL, and debug page advisories. Composer security checks may reject Laravel 11 installations; upgrading the framework is the remedy.
Note: For Laravel 10.x support, please use version 3.x of this package.
Installation
You can install the package via composer:
1composer require rappasoft/laravel-authentication-log
Optional Dependencies
Location Features
If you want location tracking features, you must also install torann/geoip:
1composer require torann/geoip
SMS Notifications
For SMS notifications via Vonage (formerly Nexmo), install the Vonage package:
1composer require laravel/vonage-notification-channel
Slack Notifications
For Slack notifications, ensure you have the Slack notification channel configured in your Laravel application.
Next Steps
After installation, you should:
- Configure the package
- Add the
AuthenticationLoggabletrait to your User model - Publish and run migrations
- (Optional) Configure notifications and webhooks