From 8eeb9a9913a5d79917693c2f999b29bdcbc7eb83 Mon Sep 17 00:00:00 2001 From: Eldad Fux Date: Sun, 29 Dec 2019 01:24:52 +0200 Subject: [PATCH] Fixed examples --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5477dc7..1c15a95 100644 --- a/README.md +++ b/README.md @@ -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 ``` @@ -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