src/Assets/AssetServiceProvider.php
/**
     * Register the component library classes
     *
     * @return void
     */
Register the component library classes
@return void
Register the component library classes @return void
public function register()
    {
        $this->app->singleton(ActiveAssetCollection::class, function() {
            return $this->app->make(ActiveAssetCollection::class);
        });
        $this->app->singleton(AssetCollection::class, function() {
            return $this->app->make(AssetCollection::class);
        });
        $this->app->alias(ActiveAssetCollection::class, 'assets.active');
        $this->app->alias(AssetCollection::class, 'assets');
    }
public function register ( ) { $ this -> app -> singleton ( ActiveAssetCollection :: class , function ( ) { return $ this -> app -> make ( ActiveAssetCollection :: class ) ; } ) ; $ this -> app -> singleton ( AssetCollection :: class , function ( ) { return $ this -> app -> make ( AssetCollection :: class ) ; } ) ; $ this -> app -> alias ( ActiveAssetCollection :: class , 'assets.active' ) ; $ this -> app -> alias ( AssetCollection :: class , 'assets' ) ; }
Register the component library classes
 @return void
Register the component library classes @return void