Total Complexity | 1 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 18 | ||
Bugs | 5 | Features | 2 |
1 | <?php |
||
8 | class Audit extends Model implements \OwenIt\Auditing\Contracts\Audit |
||
9 | { |
||
10 | 1 | use \OwenIt\Auditing\Audit; |
|
|
|||
11 | |||
12 | /** |
||
13 | * {@inheritdoc} |
||
14 | */ |
||
15 | protected $guarded = []; |
||
16 | |||
17 | /** |
||
18 | * {@inheritdoc} |
||
19 | */ |
||
20 | protected $casts = [ |
||
21 | 'old_values' => 'json', |
||
22 | 'new_values' => 'json', |
||
23 | // Note: Please do not add 'auditable_id' in here, as it will break non-integer PK models |
||
24 | ]; |
||
25 | |||
26 | 32 | protected function serializeDate(DateTimeInterface $date) |
|
31 |