Commit 3889b484 authored by Nguyen Van Anh's avatar Nguyen Van Anh

publishes configure

parent 680a1e78
......@@ -20,7 +20,7 @@ class NoCaptchaServiceProvider extends ServiceProvider {
{
$app = $this->app;
$this->mergeConfigFrom('captcha', __DIR__.'/config/captcha.php');
$this->bootConfig();
$app['validator']->extend('captcha', function($attribute, $value) use ($app)
{
......@@ -35,6 +35,20 @@ class NoCaptchaServiceProvider extends ServiceProvider {
});
}
}
/**
* //
*
* @return void
*/
protected function bootConfig()
{
$path = __DIR__.'/config/captcha.php';
$this->mergeConfigFrom('captcha', $path);
$this->publishes([$path => config_path('captcha.php')]);
}
/**
* Register the service provider.
......
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