protected function getAttributes($model)
    {
        $attributes = $model->attributesToArray();
        foreach( $this->immutableAttributes as $attribute ) {
            unset( $attributes[ $attribute] );
        }

        return $attributes;
    }
protected function getAttributes($model)
    {
        $attributes = $model->attributesToArray();
        foreach( $this->immutableAttributes as $attribute ) {
            unset( $attributes[ $attribute] );
        }

        return $attributes;
    }
protected function getAttributes ( $ model ) { $ attributes = $ model -> attributesToArray ( ) ; foreach ( $ this -> immutableAttributes as $ attribute ) { unset ( $ attributes [ $ attribute ] ) ; } return $ attributes ; }
Return all relevant attributes for a given model

@param   Model $model        The model for which we would like to return the attributes
@return array
Return all relevant attributes for a given model