a ver si asi
This commit is contained in:
parent
93995f072f
commit
5b8daad6f4
|
|
@ -15,7 +15,7 @@ class ProfaneServiceProvider extends ServiceProvider
|
|||
__DIR__.'/lang' => resource_path('lang/vendor/laravel-profane'),
|
||||
]);
|
||||
|
||||
Validator::extend('profane', 'LaravelProfane\ProfaneValidator@validate', 'The :attribute contains vulgar content.');
|
||||
Validator::extend('profane', 'LaravelProfane\ProfaneValidator@validate', Lang::get('laravel-profane::validation.profane'));
|
||||
|
||||
Validator::replacer('profane', function($message, $attribute, $rule, $parameters) {
|
||||
return str_replace(':attribute', $attribute, $message);
|
||||
|
|
|
|||
|
|
@ -0,0 +1,5 @@
|
|||
<?php
|
||||
|
||||
return [
|
||||
'profane' => 'El :attribute contiene palabras vulgares'
|
||||
];
|
||||
Loading…
Reference in New Issue