Skip to content

Commit

Permalink
Fixed examples
Browse files Browse the repository at this point in the history
  • Loading branch information
eldadfux committed Dec 28, 2019
1 parent a32bfda commit 8eeb9a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ $audit->log($userId, $event, $resource, $userAgent, $ip, $location, $data);
Fetch all logs by given user ID

```php
$logs = $this->audit->getLogsByUser(
$logs = $audit->getLogsByUser(
'userId' // User unique ID
); // Returns an array of all logs for specific user
```
Expand All @@ -80,7 +80,7 @@ $logs = $this->audit->getLogsByUser(
Fetch all logs by given user ID and a specific action name

```php
$logs = $this->audit->getLogsByUserAndActions(
$logs = $audit->getLogsByUserAndActions(
'userId', // User unique ID
['update', 'delete'] // List of selected action to fetch
); // Returns an array of all logs for specific user filtered by given actions
Expand Down

0 comments on commit 8eeb9a9

Please sign in to comment.