protected function removeHiddenAttributes($instance, $data)
    {
        $hidden = $instance->getHidden();

        return array_diff_key($data, array_flip($hidden));
    }
protected function removeHiddenAttributes($instance, $data)
    {
        $hidden = $instance->getHidden();

        return array_diff_key($data, array_flip($hidden));
    }
protected function removeHiddenAttributes ( $ instance , $ data ) { $ hidden = $ instance -> getHidden ( ) ; return array_diff_key ( $ data , array_flip ( $ hidden ) ) ; }
Remove model's hidden attributes.

@param  \Illuminate\Database\Eloquent\Model  $instance
@param  array  $data
@return array
Remove model s hidden attributes .