This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
JimRed
Hello Guys,
Please help me.
I have a database table and I have a sensitive field so I would like to store the data in encrypted format.
I wrote the following line into my model php:
protected $encrypted = ['secret_code'];
...but when I save data via backend into the table the field store the plain (not-encrypted) data in the table.
Could you please help me how should I use the function properly?
Thank you
alisaracoglu
Perhaps someone like me will come here many years later. Don't forget to add
use \October\Rain\Database\Traits\Encryptable;
to the beginning of the file. :)
1-4 of 4