From a70a1ed7e74258a0835ffa33d393b6e877ba735f Mon Sep 17 00:00:00 2001 From: lukinovec Date: Tue, 31 Oct 2023 10:57:15 +0100 Subject: [PATCH] Add encrypted castables docblock --- src/VirtualColumn.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/VirtualColumn.php b/src/VirtualColumn.php index 42fee8a..eac5f10 100644 --- a/src/VirtualColumn.php +++ b/src/VirtualColumn.php @@ -16,6 +16,12 @@ */ 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 = []; /**