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

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

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

@return void
Register posttype services .