protected function registerModelFactory()
    {
        $this->app->singleton(ModelFactory::class, function ($app) {
            return new ModelFactory(
                $app->make('db'),
                $app->make(Filesystem::class),
                new Classify(),
                new Config($app->make('config')->get('models'))
            );
        });
    }
protected function registerModelFactory()
    {
        $this->app->singleton(ModelFactory::class, function ($app) {
            return new ModelFactory(
                $app->make('db'),
                $app->make(Filesystem::class),
                new Classify(),
                new Config($app->make('config')->get('models'))
            );
        });
    }
protected function registerModelFactory ( ) { $ this -> app -> singleton ( ModelFactory :: class , function ( $ app ) { return new ModelFactory ( $ app -> make ( 'db' ) , $ app -> make ( Filesystem :: class ) , new Classify ( ) , new Config ( $ app -> make ( 'config' ) -> get ( 'models' ) ) ) ; } ) ; }
Register Model Factory.

@return void
Register Model Factory .