Skip to content

Commit 8d08101

Browse files
committed
add publish with load translations
1 parent b4494b3 commit 8d08101

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/LaravelValidateServiceProvider.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,15 @@
66

77
class LaravelValidateServiceProvider extends ServiceProvider
88
{
9+
/**
10+
* Register files.
11+
*
12+
* @return void
13+
*/
14+
public function register()
15+
{
16+
$this->publishes([__DIR__ . '/../validation' => lang_path('/')], 'lang');
917

18+
$this->loadTranslationsFrom(__DIR__ . '/../lang', 'validation');
19+
}
1020
}

0 commit comments

Comments
 (0)