attla / encoded-attributes
A powerful layer to encode eloquent attributes.
Installs: 14
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/attla/encoded-attributes
Requires
- php: >=7.2.5
- attla/data-token: dev-main
This package is auto-updated.
Last update: 2025-09-14 13:32:31 UTC
README
🔣 A powerful layer to encode eloquent attributes.
Installation
composer require attla/encoded-attributes
Usage
Add the Attla\EncodedAttributes\HasEncodedAttributes
trait to your model.
To automatically turn some attribute into an encoded attribute, add a Encoded
or _encoded
suffix.
// getting existed attribute $model->email // turning an attribute into an encoded attribute $model->emailEncoded // or $model->email_encoded
If you need validate a encoded attribute with rules: exists
, unique
use the suffix _encoded
.
License
This package is licensed under the MIT license © Octha.