anhskohbo / no-captcha

No CAPTCHA reCAPTCHA For Laravel.
https://packagist.org/packages/anhskohbo/no-captcha
MIT License
1.77k stars 234 forks source link

Added check in ServiceProvider's register and boot methods to see if … #139

Open jarnail93 opened 5 years ago

jarnail93 commented 5 years ago

…we are on terminal, then do not register and boot.

Why? because, if we add no-captcha to the project at the very beginning or say before generating application key (artisan key:generate), then artisan key:generate will throw an error of "RuntimeException No application encryption key has been specified." because of the use of Encryption class, which itself require application key.