diff --git a/README.md b/README.md index 3092ece..bb96fb0 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,7 @@ RECAPTCHA_SECRET=secret Run vendor publish to add the captcha.php file to config: ``` -php artisan vendor:publish --provider=Anam\Captcha\ServiceProvider\CaptchaServiceProvider +php artisan vendor:publish --tag=CaptchaConfig ``` By default, The package will try to load keys from environment. However, you can set them manually: diff --git a/src/ServiceProvider/CaptchaServiceProvider.php b/src/ServiceProvider/CaptchaServiceProvider.php index b9fb905..fb93e23 100644 --- a/src/ServiceProvider/CaptchaServiceProvider.php +++ b/src/ServiceProvider/CaptchaServiceProvider.php @@ -28,8 +28,8 @@ public function register() public function boot() { $this->publishes([ - __DIR__.'/../../config/captcha.php' => config_path('captcha.php'), - ]); + __DIR__.'/../config/captcha.php' => config_path('captcha.php'), + ], 'CaptchaConfig'); Blade::directive('captcha', function ($siteKey = null) { diff --git a/config/captcha.php b/src/config/captcha.php similarity index 100% rename from config/captcha.php rename to src/config/captcha.php