Skip to content

Commit

Permalink
Fixed Service Provider
Browse files Browse the repository at this point in the history
  • Loading branch information
micheleangioni committed May 14, 2016
1 parent 0e6a9f4 commit 0ce8b3f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/MicheleAngioni/Support/SupportServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.',
Expand Down

0 comments on commit 0ce8b3f

Please sign in to comment.