We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36a5bb3 commit 32fd4b8Copy full SHA for 32fd4b8
src/LaravelValidateServiceProvider.php
@@ -5,6 +5,7 @@
5
use Illuminate\Support\Facades\File;
6
use Illuminate\Support\Facades\Validator;
7
use Illuminate\Support\ServiceProvider;
8
+use Illuminate\Support\Str;
9
use Milwad\LaravelValidate\Utils\CountryPhoneCallback;
10
11
class LaravelValidateServiceProvider extends ServiceProvider
@@ -31,6 +32,10 @@ protected function publishLangFiles(): void
31
32
$langs = File::directories(__DIR__.'/lang');
33
34
foreach ($langs as $lang) {
35
+ $lang = Str::after($lang, 'lang');
36
+ $lang = Str::replace('\\', '', $lang);
37
+ $lang = Str::replace('/', '', $lang);
38
+
39
$this->publishes([
40
__DIR__."/lang/$lang" => lang_path($lang),
41
], "validate-lang-$lang");
0 commit comments