Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
isSecondUsageAttempt method explanation
  • Loading branch information
zgabievi authored Sep 13, 2018
1 parent 97048e7 commit be20844
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ Promocodes::check($code);

---

If you want to check if user tries to use promocode for second time you can call `Promocodes::isSecondUsageAttempt` and pass `Promocode` object as an argument. As an answer you will get boolean value

---

Redeem or apply code. Redeem is alias for apply method.

User should be authenticated to redeem code or this method will throw an exception (`\Gabievi\Promocodes\Exceptions\UnauthenticatedException`).
Expand Down

0 comments on commit be20844

Please sign in to comment.