src/Support/Concerns/DataContainer.php
public function forget(string $key): bool
    {
        $items = $this->items;

        \array_push($this->removedItems, $key);
        Arr::forget($items, $key);

        $this->items = $items;

        return true;
    }
public function forget(string $key): bool
    {
        $items = $this->items;

        \array_push($this->removedItems, $key);
        Arr::forget($items, $key);

        $this->items = $items;

        return true;
    }
public function forget ( string $ key ) : bool { $ items = $ this -> items ; \ array_push ( $ this -> removedItems , $ key ) ; Arr :: forget ( $ items , $ key ) ; $ this -> items = $ items ; return true ; }
Remove a item key.

@param  string  $key

@return bool
Remove a item key .