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

        $this->app->alias('posttype.factory', PosttypeFactory::class);
    }