src/Assetter/Assetter.php
public function loadFromCollection($name)
    {
        if($this->alreadyLoaded($name))
        {
            return $this;
        }

        list($name) = $this->fireEvent('load-from-collection', [ $name ]);

        foreach($this->collection as $item)
        {
            if($item['name'] === $name)
            {
                $this->loadFromArray($item);
            }
        }

        return $this;
    }
public function loadFromCollection($name)
    {
        if($this->alreadyLoaded($name))
        {
            return $this;
        }

        list($name) = $this->fireEvent('load-from-collection', [ $name ]);

        foreach($this->collection as $item)
        {
            if($item['name'] === $name)
            {
                $this->loadFromArray($item);
            }
        }

        return $this;
    }
Loads given asset (by name) from defined collection.
@param  string $name Asset name.
@return self