Skip to content

Commit

Permalink
wip readme
Browse files Browse the repository at this point in the history
  • Loading branch information
rennokki committed Oct 21, 2020
1 parent 388c6d5 commit 453ffe4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ $user->update(['ssn' => '12345678']);

## Available Casts

#### `RenokiCo\UsefulCasts\Casts\Encrypted::class` - encrypts/decrypts a value from the database

#### `RenokiCo\UsefulCasts\Casts\Arrayed::class` - serializes/unserializes an array. If null, still returns an array.

#### `RenokiCo\UsefulCasts\Casts\EncryptedArray::class` - encrypts/decrypts and serializes/unserializes an array. If null, it gets encrypted as empty
| Cast class | Purpose |
|------------|---------|
| `RenokiCo\UsefulCasts\Casts\Encrypted::class` | Encrypts and decrypts a value from the database |
| `RenokiCo\UsefulCasts\Casts\Arrayed::class` | Serializes and unserialies an array. If the value is null, returns an empty array. |
| `RenokiCo\UsefulCasts\Casts\EncryptedArray::class` | Encrypts and decrypts a value from the database, making sure it's always an array, even if the value is set or get as `null` |

## 🐛 Testing

Expand Down

0 comments on commit 453ffe4

Please sign in to comment.