From ffbdeee2c134f4958915d04a66c6a4fc9706e722 Mon Sep 17 00:00:00 2001 From: Abraham Arango Date: Sun, 5 Mar 2023 19:34:35 -0600 Subject: [PATCH] Update README.md (#53) Correct read me parameters for givePoint helper function --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c1a4a8b..4fead49 100644 --- a/README.md +++ b/README.md @@ -136,7 +136,7 @@ $user->undoPoint(new PostCreated($post)); $post->delete(); ``` -You can also pass second argument as $user in helper function `givePoint(new PostCreated($post, $user))`, default is auth()->user(). +You can also pass second argument as $user in helper function `givePoint(new PostCreated($post), $user)`, default is auth()->user(). **Pro Tip 👌** You could also hook into the Eloquent model event and give point on `created` event. Similarly, `deleted` event can be used to undo the point.