From 09ff604a444bfa808e46037e028fed4772689224 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A7alo=20Queir=C3=B3s?= Date: Fri, 22 Jul 2016 11:43:27 +0100 Subject: [PATCH] Pass customAttributes param to the Validator --- src/ServiceProviders/LaravelBaseServiceProvider.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ServiceProviders/LaravelBaseServiceProvider.php b/src/ServiceProviders/LaravelBaseServiceProvider.php index 977798a..bbf163f 100755 --- a/src/ServiceProviders/LaravelBaseServiceProvider.php +++ b/src/ServiceProviders/LaravelBaseServiceProvider.php @@ -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); } ); }