Skip to content

Commit ffbdeee

Browse files
authored
Update README.md (#53)
Correct read me parameters for givePoint helper function
1 parent 6eac881 commit ffbdeee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ $user->undoPoint(new PostCreated($post));
136136
$post->delete();
137137
```
138138

139-
You can also pass second argument as $user in helper function `givePoint(new PostCreated($post, $user))`, default is auth()->user().
139+
You can also pass second argument as $user in helper function `givePoint(new PostCreated($post), $user)`, default is auth()->user().
140140

141141
**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.
142142

0 commit comments

Comments
 (0)