| Total Complexity | 2 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | class Audit extends Model implements \OwenIt\Auditing\Contracts\Audit |
||
| 21 | { |
||
| 22 | use \OwenIt\Auditing\Audit; |
||
|
|
|||
| 23 | |||
| 24 | /** |
||
| 25 | * {@inheritdoc} |
||
| 26 | */ |
||
| 27 | protected $guarded = []; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * {@inheritdoc} |
||
| 31 | */ |
||
| 32 | protected $casts = [ |
||
| 33 | 'old_values' => 'json', |
||
| 34 | 'new_values' => 'json', |
||
| 35 | 'auditable_id' => 'integer', |
||
| 36 | ]; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * {@inheritdoc} |
||
| 40 | */ |
||
| 41 | 36 | public function auditable(): MorphTo |
|
| 44 | } |
||
| 45 | |||
| 46 | /** |
||
| 47 | * {@inheritdoc} |
||
| 48 | */ |
||
| 49 | 48 | public function user(): MorphTo |
|
| 54 |