public function getAssets()
    {
        $assets = $this->assets;

        // Spin through each directory and recursively merge the current directories assets
        // on to the directories assets. This maintains the order of adding in the array
        // structure.
        $this->directories->each(function($directory) use (&$assets)
        {
            $assets = $directory->getAssets()->merge($assets);
        });

        // Spin through each of the filters and apply them to each of the assets. Every filter
        // is applied and then later during the build will be removed if it does not apply
        // to a given asset.
        $this->filters->each(function($filter) use (&$assets)
        {
            $assets->each(function($asset) use ($filter) { $asset->apply($filter); });
        });

        return $assets;
    }
public function getAssets()
    {
        $assets = $this->assets;

        // Spin through each directory and recursively merge the current directories assets
        // on to the directories assets. This maintains the order of adding in the array
        // structure.
        $this->directories->each(function($directory) use (&$assets)
        {
            $assets = $directory->getAssets()->merge($assets);
        });

        // Spin through each of the filters and apply them to each of the assets. Every filter
        // is applied and then later during the build will be removed if it does not apply
        // to a given asset.
        $this->filters->each(function($filter) use (&$assets)
        {
            $assets->each(function($asset) use ($filter) { $asset->apply($filter); });
        });

        return $assets;
    }
public function getAssets ( ) { $ assets = $ this -> assets ; // Spin through each directory and recursively merge the current directories assets // on to the directories assets. This maintains the order of adding in the array // structure. $ this -> directories -> each ( function ( $ directory ) use ( & $ assets ) { $ assets = $ directory -> getAssets ( ) -> merge ( $ assets ) ; } ) ; // Spin through each of the filters and apply them to each of the assets. Every filter // is applied and then later during the build will be removed if it does not apply // to a given asset. $ this -> filters -> each ( function ( $ filter ) use ( & $ assets ) { $ assets -> each ( function ( $ asset ) use ( $ filter ) { $ asset -> apply ( $ filter ) ; } ) ; } ) ; return $ assets ; }
Get all the assets.

@return \Illuminate\Support\Collection
Get all the assets .