From 024c0ff3bde538d0a3604fdb77e7a736a00c707d Mon Sep 17 00:00:00 2001 From: Zura Gabievi Date: Sat, 17 Sep 2016 01:26:10 +0400 Subject: [PATCH] Update README.md --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index ab7c119..a03eb74 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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`