From a0c0d21c4fde1d744d7a921e3a884858fc057531 Mon Sep 17 00:00:00 2001 From: Bjorn Voesten Date: Mon, 2 Nov 2020 22:05:37 +0100 Subject: [PATCH] Added encrypt and decrypt to readme --- readme.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/readme.md b/readme.md index 5a794ae..26f0205 100644 --- a/readme.md +++ b/readme.md @@ -95,6 +95,12 @@ class User extends Model } ``` +### Encrypt and decrypt + +Attributes will be automatically encrypted and decrypted when filling and retrieving attribute values. + +**Note** Because the package uses Laravel casts it is not possible to combine the `Encrypted` cast and accessors/mutators. + ### Searching **Note** When searching with the `equal to` operator models will be returned when the value is found in one of all available or defined indexes. When searching with the `not equal to` operator all models where the value is not found in any of the available or the defined indexes are returned.