public function register()
    {
        $this->app->singleton('hook.factory', function ($app) {
            return new HookFactory($app);
        });

        $this->app->alias('hook.factory', HookFactory::class);
    }
public function register()
    {
        $this->app->singleton('hook.factory', function ($app) {
            return new HookFactory($app);
        });

        $this->app->alias('hook.factory', HookFactory::class);
    }
public function register ( ) { $ this -> app -> singleton ( 'hook.factory' , function ( $ app ) { return new HookFactory ( $ app ) ; } ) ; $ this -> app -> alias ( 'hook.factory' , HookFactory :: class ) ; }
Register hook services.

@return void
Register hook services .