src/Primitive/Object/Object.php
public function get($property, $default = null)
    {
        $property = $this->getStringable($property);

        if ($this->has($property))
        {
            return $this->retrieveValue($property);
        }

        return $default;
    }
public function get($property, $default = null)
    {
        $property = $this->getStringable($property);

        if ($this->has($property))
        {
            return $this->retrieveValue($property);
        }

        return $default;
    }
Getter for value. Supports dot notation.
Can retrieve value from objects, arrays, Containers, instances of ArrayableContract and ObjectContract.

@param string|StringContract $property
@param mixed $default
@return mixed|null