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) |
||
23 | |||
24 | /** |
||
25 | * Prepare the given value for storage. |
||
26 | * |
||
27 | * @param \Illuminate\Database\Eloquent\Model $model |
||
28 | * @param string $key |
||
29 | * @param mixed $value |
||
30 | * @param array $attributes |
||
31 | * @return string |
||
32 | */ |
||
33 | public function set($model, $key, $value, $attributes) |
||
37 | } |