...
Code Block | ||
---|---|---|
| ||
class my_model extends \core\orm\entiyentity\encrypted_model { // Remove the attribute from the model whitelist (if it exists) protected $model_accessor_whitelist = [ 'some_field', ]; // Add the attribute to the encrypted whitelist protected $encrypted_attribute_list = [ 'my_token', ]; // Add the attribute to the entity whitelist protected $entity_attribute_whitelist = [ 'my_token', ]; } |
...