1 | <?php |
||
8 | class AESEncrypted implements CastsAttributes |
||
9 | { |
||
10 | /** |
||
11 | * Cast the given value and decrypt |
||
12 | * |
||
13 | * @param \Illuminate\Database\Eloquent\Model $model |
||
14 | * @param string $key |
||
15 | * @param mixed $value |
||
16 | * @param array $attributes |
||
17 | * @return array |
||
18 | */ |
||
19 | public function get($model, $key, $value, $attributes) |
||
27 | |||
28 | /** |
||
29 | * Prepare the given value for storage. |
||
30 | * |
||
31 | * @param \Illuminate\Database\Eloquent\Model $model |
||
32 | * @param string $key |
||
33 | * @param mixed $value |
||
34 | * @param array $attributes |
||
35 | * @return string |
||
36 | */ |
||
37 | public function set($model, $key, $value, $attributes) |
||
45 | } |
||
46 |