src/DoctrineServiceProvider.php
protected function registerEntityFactory()
    {
        $this->app->singleton(FakerGenerator::class, function () {
            return FakerFactory::create();
        });

        $this->app->singleton(EntityFactory::class, function ($app) {
            return EntityFactory::construct(
                $app->make(FakerGenerator::class),
                $app->make('registry'),
                database_path('factories')
            );
        });
    }
protected function registerEntityFactory()
    {
        $this->app->singleton(FakerGenerator::class, function () {
            return FakerFactory::create();
        });

        $this->app->singleton(EntityFactory::class, function ($app) {
            return EntityFactory::construct(
                $app->make(FakerGenerator::class),
                $app->make('registry'),
                database_path('factories')
            );
        });
    }
protected function registerEntityFactory ( ) { $ this -> app -> singleton ( FakerGenerator :: class , function ( ) { return FakerFactory :: create ( ) ; } ) ; $ this -> app -> singleton ( EntityFactory :: class , function ( $ app ) { return EntityFactory :: construct ( $ app -> make ( FakerGenerator :: class ) , $ app -> make ( 'registry' ) , database_path ( 'factories' ) ) ; } ) ; }
Register the Entity factory instance in the container.

@return void
Register the Entity factory instance in the container .