1 | <?php |
||
11 | class EncryptedCollection extends Encrypted |
||
12 | { |
||
13 | /** |
||
14 | * Cast the given value and decrypt |
||
15 | * |
||
16 | * @param \Illuminate\Database\Eloquent\Model $model |
||
17 | * @param string $key |
||
18 | * @param mixed $value |
||
19 | * @param array $attributes |
||
20 | * @return int |
||
21 | */ |
||
22 | public function get($model, $key, $value, $attributes) |
||
26 | |||
27 | /** |
||
28 | * Prepare the given value for storage. |
||
29 | * |
||
30 | * @param \Illuminate\Database\Eloquent\Model $model |
||
31 | * @param string $key |
||
32 | * @param array $value |
||
33 | * @param array $attributes |
||
34 | * @return string |
||
35 | */ |
||
36 | public function set($model, $key, $value, $attributes) |
||
52 | } |
||
53 |