Commit 60e6b539 authored by Nguyen Van Anh's avatar Nguyen Van Anh

Use mergeConfigFrom

parent 7ae5df30
......@@ -20,9 +20,7 @@ class NoCaptchaServiceProvider extends ServiceProvider {
{
$app = $this->app;
$this->publishes([
__DIR__.'/config/captcha.php' => config_path('captcha.php')
]);
$this->mergeConfigFrom('captcha', __DIR__.'/config/captcha.php');
$app['validator']->extend('captcha', function($attribute, $value) use ($app)
{
......
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