From 0ce8b3fe27714e7e916770c1da0fc7f502d46273 Mon Sep 17 00:00:00 2001 From: Michele Angioni Date: Sat, 14 May 2016 21:07:26 +0200 Subject: [PATCH] Fixed Service Provider --- src/MicheleAngioni/Support/SupportServiceProvider.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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.',