jetiradoro/laravel-encrypt-model
Laravel trait to transparently encrypt specified Eloquent model attributes before saving to the database and automatically decrypt them when accessed. Install via Composer, add the Encryptable trait, and list encrypted fields in the $encryptable array.
For Executives: "This package lets us securely encrypt sensitive user data (like credit cards or SSNs) automatically—no manual coding required. It’s a lightweight, open-source solution that reduces compliance risk and development effort. For example, an e-commerce site could encrypt payment details at rest while keeping the system simple and scalable. The MIT license and Laravel integration mean low risk and easy adoption."
For Engineers:
"This trait-based package handles field-level encryption/decryption transparently in Laravel models. Just define $encryptable in your model, and it encrypts data before DB storage and decrypts on retrieval. Ideal for quick wins on PII protection without adding complex infrastructure. Trade-off: minimal overhead (~1ms per field) and no key management—best for dev/test environments or simple use cases. For production, pair with Laravel Forge/Envoyer for key rotation."
How can I help you explore Laravel packages today?