visits($post)->reset();
visits($post)->period('year')->reset();
- minute
- hour
- 1hours to 12hours
- day
- week
- month
- year
- quarter
- decade
- century
You can also make your custom period by adding a carbon marco in AppServiceProvider
:
Carbon::macro('endOf...', function () {
//
});
//all
visits($post)->reset('ips');
//one
visits($post)->reset('ips','127.0.0.1');
visits('App\Post')->reset();
visits('App\Post')->reset('lists');
visits('App\Post')->period('year')->reset();
visits('App\Post')->reset('factory');
Prev: < Visits-lists