Skip to content

Commit

Permalink
add info on checking an invite
Browse files Browse the repository at this point in the history
  • Loading branch information
clarkeash authored Apr 10, 2017
1 parent ba633bc commit 816cb48
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,16 @@ try {
}
```

### Check Invites without redeeming them

You can check an invite by calling the ````check```` method. Providing the invite code and optionally an email address. (It has the same signature as the ````redeem```` method except it will return ````true```` or ````false```` instead of throwing an exception.

```php
Doorman::check('ABCDE');
// or
Doorman::check('ABCDE', '[email protected]');
```

### Change Error Messages (and translation support)

In order to change the error message returned from doorman, we need to publish the language files like so:
Expand Down

0 comments on commit 816cb48

Please sign in to comment.