src/Collection.php
public function get($key, $defaultValue = null)
    {
        if ($this->has($key)) {
            return $this->items[$key];
        }
        return $defaultValue;
    }
public function get($key, $defaultValue = null)
    {
        if ($this->has($key)) {
            return $this->items[$key];
        }
        return $defaultValue;
    }
Get.

@param string $key
@param mixed $defaultValue Default null.
@return mixed