public function register()
    {
        $this->app->singleton('jsvalidator', function ($app) {
            $config = $app['config']->get('jsvalidation');

            return new JsValidatorFactory($app, $config);
        });
    }
public function register()
    {
        $this->app->singleton('jsvalidator', function ($app) {
            $config = $app['config']->get('jsvalidation');

            return new JsValidatorFactory($app, $config);
        });
    }
public function register ( ) { $ this -> app -> singleton ( 'jsvalidator' , function ( $ app ) { $ config = $ app [ 'config' ] -> get ( 'jsvalidation' ) ; return new JsValidatorFactory ( $ app , $ config ) ; } ) ; }
Register the application services.

@return void
Register the application services .