You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 16, 2021. It is now read-only.
To make it easier to encrypt/decrypt columns in the database, it could be built-in to the Eloquent model, similar to either the $dates attribute or the $casts properties.
Using an extra property would allow for being cast to a type after decrypting, so perhaps better.
To make it easy for users to encrypt existing data, a command could be added to encrypt data based on these columns. (eg. php artisan db:encrypt --class="App\User")
It could be done using mutators/accessors, but having this built-in could make it easier and cache objects to avoid multiple times decrypting the same value in the same request.