| 1 | <?php |
||
| 7 | class AESEncryptedObject extends AESEncrypted |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Cast the given value and decrypt |
||
| 11 | * |
||
| 12 | * @param \Illuminate\Database\Eloquent\Model $model |
||
| 13 | * @param string $key |
||
| 14 | * @param mixed $value |
||
| 15 | * @param array $attributes |
||
| 16 | * @return object |
||
| 17 | */ |
||
| 18 | public function get($model, $key, $value, $attributes) |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Prepare the given value for storage. |
||
| 36 | * |
||
| 37 | * @param \Illuminate\Database\Eloquent\Model $model |
||
| 38 | * @param string $key |
||
| 39 | * @param mixed $value |
||
| 40 | * @param array $attributes |
||
| 41 | * @return string |
||
| 42 | */ |
||
| 43 | public function set($model, $key, $value, $attributes) |
||
| 57 | } |
||
| 58 |