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