Get an attribute from the array in model.

@param  string  $key
@param  mixed   $default
@return mixed
431686
public function getAttributeFromArray($key, $default = null)
    {
        return isset($this->attributes[$key]) ? $this->attributes[$key] : $default;
    }
559183
public static function get($data, $key, $default = null)
    {
        if (self::isArrayAccess($data)) {
            return self::getArray($data, $key, $default);
        }
        if (is_object($data)) {
            return self::getObj($data, $key, $default);
        }

        return $default;
    }
538182
public function getParam($key, $default = null)
    {
        $params = $this->params;
        if (is_array($params) && isset($params[$key])) {
            $result = $params[$key];
        } else {
            if (!is_string($default) && is_callable($default)) {
                $result = $default();
            } else {
                $result = $default;
            }
        }

        return $result;
    }
296045
public function get($key, $default = null)
    {
        $value = parent::get($key, $default);
        if (is_array($value)) {
            $value = array_shift($value);
        }
        return $value;
    }
1330451
public function get($key, $default = null)
    {
        if (is_array($key)) {
            return $this->getMany($key);
        }

        return Arr::get($this->items, $key, $default);
    }
810783
private function get($key, $default = null)
    {
        if (isset($this->responseData['error'][$key])) {
            return $this->responseData['error'][$key];
        }

        return $default;
    }
1349250
public function getParam($key, $default = null)
        {
            $key = (string) $key;
            if (isset($this->_params[$key])) {
                return $this->_params[$key];
            }

            return $default;
        }
1246106
public function get($key, $default = null)
    {
        $data = Arr::get($this->config, $key);

        if ($data === null) {
            $data = is_array($default) ? new self($default) : $default;
        }

        return $data;
    }
288444
public function param($key = NULL, $default = NULL)
    {
        if ( !$key ) {
            return $this->attributes->all();
        }

        $path = '';
        $key  = explode('.', $key);
        foreach ($key as $item) {
            if ( !$path ) {
                $path .= $item;
                continue;
            }
            $path .= '[' . $item . ']';
        }

        return $this->attributes->get($path, $default, TRUE);
    }
44819
public function getArray($key, array $default = [])
	{
		$key = strtolower($key);
		
		if(array_key_exists($key, $this->data))
		{
			if(is_array($this->data[$key]))
			{
				return array_values($this->data[$key]);
			}
				
			return (array)$this->data[$key];
		}
		
		return $default;
	}
39000
public function get($key, $default = null) {
		if (!$this->has($key)) {
			return $default;
		}
		$rs = $this->conf->get($key);
		if (is_object($rs)) {
			$rs = $rs->toArray();
		}
		return $rs;
	}
20239
public function getAttribute($key, $defaultValue = false)
    {
        return $this->attributes->key($key, $defaultValue, true);
    }
937668
public function get($key, $default = null)
    {
        $key = strtolower($key);

        if (!array_key_exists($key, $this->data)) {
            if (null === $default) {
                return null;
            }

            return $default;
        }

        return $this->data[$key];
    }
863141
public function get($key, $default = null)
		{
			if (Arrays::exists($key, $this->attributes)) {
				return $this->attributes[$key];
			}

			return value($default);
		}
40132
public function get($key, $default = NULL)
    {
        if (array_key_exists($key, $this->attributes)) {
            return $this->attributes[$key];
        }

        return $default;
    }
510254
public function get($key, $default = null)
    {
        $hash = $this->key_to_hash($key);
        if (array_key_exists($hash, $this->array)) {
            return $this->array[$hash];
        } else {
            return $default;
        }
    }
985538
public function getSessionAttribute($key, $default = false) {
		return isset($this->sessionAttributes[$key]) ? $this->sessionAttributes[$key] : $default;
	}