src/Flash.php
public function get(string $key, $default = null)
    {
        if (array_key_exists($key, $this->data)) {
            return $this->data[$key];
        }

        return array_key_exists($key, $this->session) ? $this->session[$key] : $default;
    }
public function get(string $key, $default = null)
    {
        if (array_key_exists($key, $this->data)) {
            return $this->data[$key];
        }

        return array_key_exists($key, $this->session) ? $this->session[$key] : $default;
    }
Read a value

@param string $key Key
@param mixed|null $default Default value

@return  mixed