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

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

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

@return void
Register comment services .