Skip to content

Commit 8a3093e

Browse files
committed
configurable impossible-to-match
1 parent 3716a40 commit 8a3093e

File tree

4 files changed

+13
-7
lines changed

4 files changed

+13
-7
lines changed

.vscode/settings.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@
1313
"statusBar.foreground": "#e7e7e7",
1414
"statusBarItem.hoverBackground": "#4a1c40",
1515
"titleBar.inactiveBackground": "#250e2099",
16-
"titleBar.inactiveForeground": "#e7e7e799"
16+
"titleBar.inactiveForeground": "#e7e7e799",
17+
"commandCenter.border": "#e7e7e799",
18+
"sash.hoverBorder": "#4a1c40",
19+
"statusBarItem.remoteBackground": "#250e20",
20+
"statusBarItem.remoteForeground": "#e7e7e7"
1721
},
1822
"peacock.color": "#250e20"
1923
}

config/config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
* You can place your custom package configuration in here.
55
*/
66
return [
7-
7+
'impossible-to-match' => true,
88
];

src/LaravelCodiceFiscale.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,9 @@ public function registerValidator()
126126

127127
} else {
128128
if ($attr) {
129-
$msg .= __('laravel-codice-fiscale::codfisc.impossible-to-match') . ': ' . $cf['err'];
129+
if (config('laravel-codice-fiscale.impossible-to-match')) {
130+
$msg .= __('laravel-codice-fiscale::codfisc.impossible-to-match') . ': ' . $cf['err'];
131+
}
130132
} else {
131133
$msg = $cf['err'];
132134
}

src/LaravelCodiceFiscaleServiceProvider.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ public function boot()
1818
// $this->loadViewsFrom(__DIR__.'/../resources/views', 'laravel-codice-fiscale');
1919
// $this->loadMigrationsFrom(__DIR__.'/../database/migrations');
2020
// $this->loadRoutesFrom(__DIR__.'/routes.php');
21-
21+
$this->mergeConfigFrom(__DIR__ . '/../config/config.php','laravel-codice-fiscale');
2222

2323
\LaravelCodiceFiscale::registerValidator();
2424

2525

2626
if ($this->app->runningInConsole()) {
27-
// $this->publishes([
28-
// __DIR__.'/../config/config.php' => config_path('laravel-codice-fiscale.php'),
29-
// ], 'config');
27+
$this->publishes([
28+
__DIR__ . '/../config/config.php' => config_path('laravel-codice-fiscale.php'),
29+
], 'laravel-codice-fiscale');
3030

3131
// Publishing the views.
3232
/*$this->publishes([

0 commit comments

Comments
 (0)