xt/laravel-login-history
最新稳定版本:v1.0.4
Composer 安装命令:
composer require xt/laravel-login-history
包简介
store login history of user
关键字:
README 文档
README
Store login history of user (ip, region, country, user agent).
Installation
You can install the package via composer:
composer require xt/laravel-login-history
Run Migrations
Publish the migrations with this artisan command:
php artisan vendor:publish --tag=laravel-login-history-migrations
Configuration
You can publish the config file with this artisan command:
php artisan vendor:publish --tag=laravel-login-history-config
Usage
use Xt\LoginHistory\Traits\HasLoginHistory; class User extends Model { use HasLoginHistory; }
After successful login
Call following function after user login successfully
use \Illuminate\Support\Facades\Auth; Auth::user()->addLoginHistory();
IpInfo API token
get api token from ipinfo.io and add it to your .env file
IPINFO_API_TOKEN=xxxxxx
Testing
composer test
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email hiren.reshamwala@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 18
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-10-30