Skip to content

Commit

Permalink
Pass customAttributes param to the Validator
Browse files Browse the repository at this point in the history
  • Loading branch information
ghunti committed Jul 22, 2016
1 parent 20855cc commit 09ff604
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ServiceProviders/LaravelBaseServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ public function boot()
{
//Extend the Validator
$this->app->validator->resolver(
function ($translator, $data, $rules, $messages) {
return new Validator($translator, $data, $rules, $messages);
function ($translator, $data, $rules, $messages, $customAttributes) {
return new Validator($translator, $data, $rules, $messages, $customAttributes);
}
);
}
Expand Down

0 comments on commit 09ff604

Please sign in to comment.