clarkeash / doorman

Limit access to your Laravel applications by using invite codes
https://packagist.org/packages/clarkeash/doorman
MIT License
1.02k stars 45 forks source link

How to generate codes with unlimited uses? Is this possible? #59

Closed pedrocruzlopez closed 4 years ago

pedrocruzlopez commented 4 years ago

I would like to generate one code that can be used unlimited times, is there a way to do that? Thanks in advance to anyone who can help me

clarkeash commented 4 years ago

Hey, I just pushed a change to make this easier. https://github.com/clarkeash/doorman/releases/tag/v5.2.0

You can do this:

$invite = Doorman::generate()->unlimited()->once();
pedrocruzlopez commented 4 years ago

Thank you very much @clarkeash!