src/AssetCollection.php
public function remove($name)
    {
        if (!isset($this->indexed[$name])) {
            return;
        }
        unset($this->indexed[$name]);

        foreach ($this->items as $i => $v) {
            if ($v === $name) {
                unset($this->items[$i]);
            }
        }
    }
public function remove($name)
    {
        if (!isset($this->indexed[$name])) {
            return;
        }
        unset($this->indexed[$name]);

        foreach ($this->items as $i => $v) {
            if ($v === $name) {
                unset($this->items[$i]);
            }
        }
    }
public function remove ( $ name ) { if ( ! isset ( $ this -> indexed [ $ name ] ) ) { return ; } unset ( $ this -> indexed [ $ name ] ) ; foreach ( $ this -> items as $ i => $ v ) { if ( $ v === $ name ) { unset ( $ this -> items [ $ i ] ) ; } } }
Remove an asset from the collection

@param string $name The name of the asset you want to remove
@return void
Remove an asset from the collection