1
0
Fork 0
mirror of https://github.com/archtechx/virtualcolumn.git synced 2025-12-12 21:14:03 +00:00

Add encrypted castables docblock

This commit is contained in:
lukinovec 2023-10-31 10:57:15 +01:00
parent 56620956da
commit a70a1ed7e7

View file

@ -16,6 +16,12 @@ use Illuminate\Support\Facades\Crypt;
*/
trait VirtualColumn
{
/**
* Encrypted castables have to be handled using a special approach that prevents the data from getting encrypted repeatedly.
*
* The default encrypted castables ('encrypted', 'encrypted:array', 'encrypted:collection', 'encrypted:json', 'encrypted:object')
* are already handled, so you can use this array to add your own encrypted castables.
*/
public static array $customEncryptedCastables = [];
/**