diff --git a/.vscode/settings.json b/.vscode/settings.json index 6d0b57b..013c3d5 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -13,7 +13,11 @@ "statusBar.foreground": "#e7e7e7", "statusBarItem.hoverBackground": "#4a1c40", "titleBar.inactiveBackground": "#250e2099", - "titleBar.inactiveForeground": "#e7e7e799" + "titleBar.inactiveForeground": "#e7e7e799", + "commandCenter.border": "#e7e7e799", + "sash.hoverBorder": "#4a1c40", + "statusBarItem.remoteBackground": "#250e20", + "statusBarItem.remoteForeground": "#e7e7e7" }, "peacock.color": "#250e20" } \ No newline at end of file diff --git a/config/config.php b/config/config.php index 48d0ee9..09e4323 100644 --- a/config/config.php +++ b/config/config.php @@ -4,5 +4,5 @@ * You can place your custom package configuration in here. */ return [ - + 'impossible-to-match' => true, ]; \ No newline at end of file diff --git a/src/LaravelCodiceFiscale.php b/src/LaravelCodiceFiscale.php index 9df3dab..3e10954 100644 --- a/src/LaravelCodiceFiscale.php +++ b/src/LaravelCodiceFiscale.php @@ -126,7 +126,9 @@ public function registerValidator() } else { if ($attr) { - $msg .= __('laravel-codice-fiscale::codfisc.impossible-to-match') . ': ' . $cf['err']; + if (config('laravel-codice-fiscale.impossible-to-match')) { + $msg .= __('laravel-codice-fiscale::codfisc.impossible-to-match') . ': ' . $cf['err']; + } } else { $msg = $cf['err']; } diff --git a/src/LaravelCodiceFiscaleServiceProvider.php b/src/LaravelCodiceFiscaleServiceProvider.php index bd90777..c7c3e4d 100644 --- a/src/LaravelCodiceFiscaleServiceProvider.php +++ b/src/LaravelCodiceFiscaleServiceProvider.php @@ -18,15 +18,15 @@ public function boot() // $this->loadViewsFrom(__DIR__.'/../resources/views', 'laravel-codice-fiscale'); // $this->loadMigrationsFrom(__DIR__.'/../database/migrations'); // $this->loadRoutesFrom(__DIR__.'/routes.php'); - + $this->mergeConfigFrom(__DIR__ . '/../config/config.php','laravel-codice-fiscale'); \LaravelCodiceFiscale::registerValidator(); if ($this->app->runningInConsole()) { - // $this->publishes([ - // __DIR__.'/../config/config.php' => config_path('laravel-codice-fiscale.php'), - // ], 'config'); + $this->publishes([ + __DIR__ . '/../config/config.php' => config_path('laravel-codice-fiscale.php'), + ], 'laravel-codice-fiscale'); // Publishing the views. /*$this->publishes([