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

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

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

@return void
Register user services .