Skip to content

Commit

Permalink
Add encrypted castables docblock
Browse files Browse the repository at this point in the history
  • Loading branch information
lukinovec committed Oct 31, 2023
1 parent 5662095 commit a70a1ed
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/VirtualColumn.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [];

/**
Expand Down

0 comments on commit a70a1ed

Please sign in to comment.