a ver si asi

This commit is contained in:
Arandi Lopez 2016-07-18 23:24:32 -05:00
parent 93995f072f
commit 5b8daad6f4
3 changed files with 6 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', '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);

View File

@ -0,0 +1,5 @@
<?php
return [
'profane' => 'El :attribute contiene palabras vulgares'
];