alive2212/laravel-user-traffic
Composer 安装命令:
composer require alive2212/laravel-user-traffic
包简介
:description
README 文档
README
This is where your description should go. Take a look at contributing.md to see a to do list.
Installation
Via Composer
$ composer require alive2212/laravelusertraffic
after install use 'MetaTrait' in user model
use Illuminate\Database\Eloquent\Model; use Phoenix\EloquentMeta\MetaTrait; class SomeModel extends Model { use MetaTrait; // model methods }
Usage
after use 'auth:api' use this middleware 'user_traffic'
To get last and current and count of traffic
$request['user_traffic'];
Change log
Please see the changelog for more information on what has changed recently.
Testing
$ composer test
Contributing
Please see contributing.md for details and a todolist.
Security
If you discover any security related issues, please email author email instead of using the issue tracker.
Credits
License
license. Please see the license file for more information.
统计信息
- 总下载量: 30
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-07-18