again, i donno what to do now
This commit is contained in:
parent
9f11776e14
commit
2009e79c00
|
|
@ -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', Lang::get('laravelprofane::validation.profane'));
|
Validator::extend('profane', 'LaravelProfane\ProfaneValidator@validate');
|
||||||
|
|
||||||
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);
|
||||||
|
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
return [
|
|
||||||
'profane' => 'El :attribute contiene palabras vulgares.'
|
|
||||||
];
|
|
||||||
Loading…
Reference in New Issue