diff --git a/src/MicheleAngioni/Support/SupportServiceProvider.php b/src/MicheleAngioni/Support/SupportServiceProvider.php index bef9de1..6702a39 100644 --- a/src/MicheleAngioni/Support/SupportServiceProvider.php +++ b/src/MicheleAngioni/Support/SupportServiceProvider.php @@ -60,8 +60,10 @@ public function registerHelpers() }); } - public function registerCustomValidators(ValidationFactory $validator) + public function registerCustomValidators() { + $validator = $this->app->make('Illuminate\Validation\Factory'); + $validator->resolver(function ($translator, $data, $rules, $messages) { $messages = [ 'alpha_complete' => 'Only the following characters are allowed: alphabetic, numbers, spaces, slashes and several punctuation characters.',