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

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

        return $default;
    }
public function get ( $ key , $ default = null ) { if ( array_key_exists ( $ key , $ this -> attributes ) ) { return $ this -> attributes [ $ key ] ; } return $ default ; }
Get an attribute from the collection.

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