Skip to content

Apply fixes from StyleCI #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 25, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions resources/lang/en/validation.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
'ip' => [
'v4' => ':attribute must be Vietnam ipv4.',
'v6' => ':attribute must be Vietnam ipv6.',
'default' => ':attribute must be Vietnam ip.'
]
'default' => ':attribute must be Vietnam ip.',
],
];
4 changes: 2 additions & 2 deletions resources/lang/vi/validation.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
'ip' => [
'v4' => ':attribute phải là ipv4 tại Việt Nam.',
'v6' => ':attribute phải là ipv6 tại Việt Nam.',
'default' => ':attribute phải là ip Việt Nam.'
]
'default' => ':attribute phải là ip Việt Nam.',
],
];
4 changes: 2 additions & 2 deletions src/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ public function boot(): void
protected function loadTrans(): void
{
$this->publishes([
__DIR__ . '/../resources/lang' => resource_path('lang/vendor/phpVietValidation'),
__DIR__.'/../resources/lang' => resource_path('lang/vendor/phpVietValidation'),
]);
$this->loadTranslationsFrom(__DIR__ . '/../resources/lang/', 'phpVietValidation');
$this->loadTranslationsFrom(__DIR__.'/../resources/lang/', 'phpVietValidation');
}

protected function loadExt(): void
Expand Down