Skip to content

Commit

Permalink
using request docs
Browse files Browse the repository at this point in the history
  • Loading branch information
khanzadimahdi committed Oct 15, 2019
1 parent 989f486 commit 6dbaa42
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ we have the below methods to retrieve a visitor's information:
- `useragent` : the whole useragent
- `isOnline` : determines if current (or given) user is online

```php
$request->visitor()->browser(); // firefox
$request->visitor()->visit($post); // create log for post
$request->visitor()->setVisitor($user)->visit($post); // create a log wich says $user has visited $post
```

#### Store Logs

you can create logs using the `visit` method like the below
Expand Down

0 comments on commit 6dbaa42

Please sign in to comment.