src/Validation/Laravel/ValidationServiceProvider.php
public function boot() {
        $app = $this->app;

        $this->app['validator']->resolver(function($translator, $data, $rules, $messages) use($app) {
            $validator = new Validator(
                $translator,
                $app->make(Hasher::class),
                $app['view'],
                $app['router'],
                $data,
                $rules,
                $messages
            );
            return $validator;
        });
    }
public function boot() {
        $app = $this->app;

        $this->app['validator']->resolver(function($translator, $data, $rules, $messages) use($app) {
            $validator = new Validator(
                $translator,
                $app->make(Hasher::class),
                $app['view'],
                $app['router'],
                $data,
                $rules,
                $messages
            );
            return $validator;
        });
    }
Bootstrap the application events.

@return void