a ver si poniendolo directo...
This commit is contained in:
parent
2009e79c00
commit
995ef66546
|
|
@ -15,7 +15,7 @@ class ProfaneServiceProvider extends ServiceProvider
|
||||||
__DIR__.'/lang' => resource_path('lang/vendor/laravel-profane'),
|
__DIR__.'/lang' => resource_path('lang/vendor/laravel-profane'),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
Validator::extend('profane', 'LaravelProfane\ProfaneValidator@validate');
|
Validator::extend('profane', 'LaravelProfane\ProfaneValidator@validate', 'The :attribute contains vulgar content.');
|
||||||
|
|
||||||
Validator::replacer('profane', function($message, $attribute, $rule, $parameters) {
|
Validator::replacer('profane', function($message, $attribute, $rule, $parameters) {
|
||||||
return str_replace(':attribute', $attribute, $message);
|
return str_replace(':attribute', $attribute, $message);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue