public function boot() { $this->app['validator']->resolver(function ($translator, $data, $rules, $messages, $customAttributes) { return new Validator($translator, $data, $rules, $messages, $customAttributes); }); }