LaravelUserTraffic
![Total Downloads][ico-downloads]
, (*1)
This is where your description should go. Take a look at contributing.md to see a to do list., (*2)
Installation
Via Composer, (*3)
``` bash
$ composer require alive2212/laravelusertraffic, (*4)
after install use 'MetaTrait' in user model
```php
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', (*5)
To get last and current and count of traffic, (*6)
$request['user_traffic'];
Change log
Please see the changelog for more information on what has changed recently., (*7)
Testing
bash
$ composer test
, (*8)
Contributing
Please see contributing.md for details and a todolist., (*9)
Security
If you discover any security related issues, please email author email instead of using the issue tracker., (*10)
Credits
License
license. Please see the license file for more information., (*11)