public function encode($attribute, $preset)
    {
        $encoding = new Encoding([
            'encodable_attribute' => $attribute,
            'preset' => $preset,
        ]);

        $this->encodings()->save($encoding);

        return $encoding;
    }