Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
zgabievi authored Sep 16, 2016
1 parent 13c543d commit 024c0ff
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ To create table for promocodes in database run:
php artisan migrate

> Configuration parameters are well documented. There is no need to describe each parameter here.
> Check `config/promocodes.php` and read comments there if you need.
## Usage
Expand Down Expand Up @@ -108,7 +109,9 @@ User::promocodes()
```

> There is query scopes for promocodes: `fresh()`, `byCode($code)`
> `User::promocodes()->fresh()` - all not used codes of user
> `User::promocodes()->byCode($code)` - record which matches given code
- Create promocode(s) for current user. Works exactly same like `create` method of `Promocodes`
Expand Down

0 comments on commit 024c0ff

Please sign in to comment.