| Total Complexity | 1 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 4 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 15 | class Audit extends Model implements \OwenIt\Auditing\Contracts\Audit |
||
| 16 | { |
||
| 17 | use \OwenIt\Auditing\Audit; |
||
|
|
|||
| 18 | |||
| 19 | /** |
||
| 20 | * {@inheritdoc} |
||
| 21 | */ |
||
| 22 | protected $guarded = []; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * {@inheritdoc} |
||
| 26 | */ |
||
| 27 | protected $casts = [ |
||
| 28 | 'old_values' => 'json', |
||
| 29 | 'new_values' => 'json', |
||
| 30 | // Note: Please do not add 'auditable_id' in here, as it will break non-integer PK models |
||
| 31 | ]; |
||
| 32 | |||
| 33 | public function getSerializedDate($date) |
||
| 38 |