Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
BSN4 committed Jan 15, 2019
1 parent ef386c9 commit 8994c26
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion README.md
Expand Up @@ -107,7 +107,6 @@ Where:
#### Tags
- You can track multiple kinds of visits to a single model using the tags as `visits($model, 'tag1')->increment()`


## Increments and Decrements

#### Increment
Expand Down Expand Up @@ -223,6 +222,28 @@ visits($post)->reset('ips');
visits($post)->reset('ips', '127.0.0.1');
```


### Periods options

- minute
- hour
- xhours [1hours ... to 12hours]
- day
- week
- month
- year
- quarter
- decade
- century

you also can make your custom period by adding a carbon marco in appserviceprovider:

```php
Carbon::macro('endOf...', function () {
//
});
```

#### Other
``` php
//clear all visits of the given model and its items
Expand Down

0 comments on commit 8994c26

Please sign in to comment.