a ver si poniendolo directo...

This commit is contained in:
Arandi Lopez 2016-07-18 23:15:50 -05:00
parent 2009e79c00
commit 995ef66546
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ class ProfaneServiceProvider extends ServiceProvider
__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) {
return str_replace(':attribute', $attribute, $message);