Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/zgabievi/Promocodes
Browse files Browse the repository at this point in the history
  • Loading branch information
gabiezur committed Sep 17, 2016
2 parents ec8c9b5 + 024c0ff commit e760e0a
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 e760e0a

Please sign in to comment.