public function collectionify($key)
    {
        $data = [];

        if ($this->has($key)) {
            $data = $this->storage[$key];

            if (!is_array($data)) {
                $data = [$data];
            }
        }

        return new Collection($data);
    }
public function collectionify($key)
    {
        $data = [];

        if ($this->has($key)) {
            $data = $this->storage[$key];

            if (!is_array($data)) {
                $data = [$data];
            }
        }

        return new Collection($data);
    }
public function collectionify ( $ key ) { $ data = [ ] ; if ( $ this -> has ( $ key ) ) { $ data = $ this -> storage [ $ key ] ; if ( ! is_array ( $ data ) ) { $ data = [ $ data ] ; } } return new Collection ( $ data ) ; }
To retrieve a value or value collection form d'instance de collection.

@param string $key

@return Collection
To retrieve a value or value collection form d instance de collection .