added encrypt property in the attribute string response model

This commit is contained in:
ArnabChatterjee20k
2025-05-23 12:05:42 +05:30
parent c4df1c8c4b
commit 0cccb75273
3 changed files with 12 additions and 3 deletions
@@ -24,6 +24,13 @@ class AttributeString extends Attribute
'required' => false,
'example' => 'default',
])
->addRule('encrypt', [
'type' => self::TYPE_BOOLEAN,
'description' => 'Encryption status for the string attribute. Encryption enhances security by not storing any plain text values in the database. However, encrypted attributes cannot be queried.',
'default' => false,
'required' => false,
'example' => false,
])
;
}