public function registerAssetFactory()
    {
        $this->app->singleton('asset.factory', function ($app) {
            return new AssetFactory($app['assets.collection'], $app);
        });

        $this->app->alias('asset.factory', AssetFactory::class);
    }
public function registerAssetFactory()
    {
        $this->app->singleton('asset.factory', function ($app) {
            return new AssetFactory($app['assets.collection'], $app);
        });

        $this->app->alias('asset.factory', AssetFactory::class);
    }
public function registerAssetFactory ( ) { $ this -> app -> singleton ( 'asset.factory' , function ( $ app ) { return new AssetFactory ( $ app [ 'assets.collection' ] , $ app ) ; } ) ; $ this -> app -> alias ( 'asset.factory' , AssetFactory :: class ) ; }
Register factory of assets.

@return void
Register factory of assets .