src/Valkyrja/Support/Collection.php
public function get(string $key, $default = null) // : mixed
    {
        return $this->has($key)
            ? $this->collection[$key]
            : $default;
    }
public function get(string $key, $default = null) // : mixed
    {
        return $this->has($key)
            ? $this->collection[$key]
            : $default;
    }
Get a single item from the collection.

@param string $key     The key to get
@param mixed  $default [optional] The default value

@return mixed