attributes['contact_structure'] = serialize($value); } /** * Accessor for the contact_structure attribute. * * @return mixed */ public function getContactStructureAttribute($value) { return unserialize($value); } }