public function getAttribute($key)
    {
        if (in_array($key, $this->multipleHighloadBlockFields)) {
            return unserialize($this->attributes[$key]);
        }

        return parent::getAttribute($key);
    }
public function getAttribute($key)
    {
        if (in_array($key, $this->multipleHighloadBlockFields)) {
            return unserialize($this->attributes[$key]);
        }

        return parent::getAttribute($key);
    }
public function getAttribute ( $ key ) { if ( in_array ( $ key , $ this -> multipleHighloadBlockFields ) ) { return unserialize ( $ this -> attributes [ $ key ] ) ; } return parent :: getAttribute ( $ key ) ; }
Get an attribute from the model.

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