Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
updated method description and method name for user trait
  • Loading branch information
zgabievi authored Sep 26, 2016
1 parent b443804 commit 585673b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,14 @@ User::promocodes()
- Create promocode(s) for current user. Works exactly same like `create` method of `Promocodes`

```php
User::promocode($amount = 1, $reward = null)
User::createCode($amount = 1, $reward = null)
```

- Apply, that given code is used by current user.
Second argument is callback function, which gives you reward value or true/false
Second argument is optional, if null, it will return reward or boolean, or you can pass callback function, which gives you reward or boolean value as argument

```php
User::applyCode($code, $callback)
User::applyCode($code, $callback = null)
```

Example:
Expand Down

0 comments on commit 585673b

Please sign in to comment.