Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to make it work with 'insert'? #19

Open
iec989 opened this issue Aug 26, 2020 · 1 comment
Open

Is there a way to make it work with 'insert'? #19

iec989 opened this issue Aug 26, 2020 · 1 comment

Comments

@iec989
Copy link

iec989 commented Aug 26, 2020

With Model::save() the encryption works ok, but with Model::insert($data) it doesn't encrypt.

I tried encrypting manually the values using Crypt::encryptString($c['name']) , but then those values don't get decrypted automatically when I pull the data.

Is there a way to make it work with insert? So I avoid making 100 save() calls

@iec989
Copy link
Author

iec989 commented Aug 26, 2020

Ok, I see it works by encrypting values with Crypt::encrypt($value)

What's the benefit of using encrypt instead of Crypt::encryptString

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant