Replies: 2 comments
-
Hey @Astriel I think that would be a good use case for a cast in the model ? https://laravel.com/docs/10.x/eloquent-mutators#encrypted-casting Let me know if that helps 🙏 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Due to not activity i will close this issue, but please feel free to re-open or create a new one if needed. Cheers. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone.
On my database, I've got some values which are seeded via code and encrypted with the "encryptString" method of Laravel.
I was wondering, if there was a way to encryptString (but only specific fields) on create or update (setupCreateOperation / setupUpdateOperation) without having to rewrite the whole method.
Same question for the setupShowOperation : is there a quick way to show decrypted values which are already encrypted ?
Thanks a lot.
Beta Was this translation helpful? Give feedback.
All reactions