src/Model/HasAttributes.php
public function getAttributeFromArray($key, $default = null)
    {
        return isset($this->attributes[$key]) ? $this->attributes[$key] : $default;
    }
public function getAttributeFromArray($key, $default = null)
    {
        return isset($this->attributes[$key]) ? $this->attributes[$key] : $default;
    }
public function getAttributeFromArray ( $ key , $ default = null ) { return isset ( $ this -> attributes [ $ key ] ) ? $ this -> attributes [ $ key ] : $ default ; }
Get an attribute from the array in model.

@param  string  $key
@param  mixed   $default
@return mixed
Get an attribute from the array in model .