Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
zgabievi committed Nov 24, 2015
1 parent f230b4b commit 75b1391
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,26 @@ This will generate 5 codes and insert in your DB.

---

Lastly you can check code using method `check`.
Check code using method `check`.

Method returns boolean.

```php
$valid = Promocodes::check('TEST-CODE');
```

---

Laslty apply code using method `apply`.

Method returns boolean.

```php
$applied = Promocodes::apply('TEST-CODE');
```

If method returns false, code was already used or it wasn't valid

## Config

Publish Promocodes config file using command:
Expand Down

0 comments on commit 75b1391

Please sign in to comment.