Commit 680a1e78 authored by anhskohbo's avatar anhskohbo

Merge branch 'master' of github.com:anhskohbo/no-captcha

Merge
parents 58ecdae5 60e6b539
...@@ -18,5 +18,5 @@ ...@@ -18,5 +18,5 @@
"Anhskohbo\\NoCaptcha\\": "src/" "Anhskohbo\\NoCaptcha\\": "src/"
} }
}, },
"minimum-stability": "stable" "minimum-stability": "dev"
} }
...@@ -20,6 +20,8 @@ class NoCaptchaServiceProvider extends ServiceProvider { ...@@ -20,6 +20,8 @@ class NoCaptchaServiceProvider extends ServiceProvider {
{ {
$app = $this->app; $app = $this->app;
$this->mergeConfigFrom('captcha', __DIR__.'/config/captcha.php');
$app['validator']->extend('captcha', function($attribute, $value) use ($app) $app['validator']->extend('captcha', function($attribute, $value) use ($app)
{ {
return $app['captcha']->verifyResponse($value, $app['request']->getClientIp()); return $app['captcha']->verifyResponse($value, $app['request']->getClientIp());
...@@ -41,10 +43,6 @@ class NoCaptchaServiceProvider extends ServiceProvider { ...@@ -41,10 +43,6 @@ class NoCaptchaServiceProvider extends ServiceProvider {
*/ */
public function register() public function register()
{ {
$this->publishes([
__DIR__.'/config/captcha.php' => $this->app->configPath().'/captcha.php'
]);
$this->app->bind('captcha', function($app) $this->app->bind('captcha', function($app)
{ {
return new NoCaptcha( return new NoCaptcha(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment