1 | <?php |
||
9 | class Activity extends Eloquent |
||
10 | { |
||
11 | protected $table = 'activity_log'; |
||
12 | |||
13 | protected $casts = [ |
||
14 | 'extra_properties' => 'collection', |
||
15 | ]; |
||
16 | |||
17 | public function subject(): MorphTo |
||
21 | |||
22 | public function causer(): MorphTo |
||
26 | |||
27 | /** |
||
28 | * Get the extra properties with the given name. |
||
29 | * |
||
30 | * @param $propertyName |
||
31 | * |
||
32 | * @return mixed |
||
33 | */ |
||
34 | public function getExtraProperty(string $propertyName) |
||
38 | |||
39 | public function getChangesAttribute(): Collection |
||
43 | } |
||
44 |