How to Use a Custom Encryption Key for Encrypted Cast Model Attributes in Laravel
Link – – larasec.substack.com
Laravel allows you to cast model attributes as encrypted strings1, when stored in the database. This gives you added security for any values that are sensitive (such as Personally identifiable information, PII), including complex structures such as arrays, collections, and even objects.
Read more [larasec.substack.com]