again, i donno what to do now

This commit is contained in:
Arandi Lopez 2016-07-18 23:11:46 -05:00
parent 9f11776e14
commit 2009e79c00
3 changed files with 1 additions and 6 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', Lang::get('laravelprofane::validation.profane'));
Validator::extend('profane', 'LaravelProfane\ProfaneValidator@validate');
Validator::replacer('profane', function($message, $attribute, $rule, $parameters) {
return str_replace(':attribute', $attribute, $message);

View File

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