1 | <?php |
||
10 | class Activity extends Eloquent |
||
11 | { |
||
12 | protected $table = 'activity_log'; |
||
13 | |||
14 | public $guarded = []; |
||
15 | |||
16 | protected $casts = [ |
||
17 | 'properties' => 'collection', |
||
18 | ]; |
||
19 | |||
20 | public function subject(): MorphTo |
||
24 | |||
25 | public function causer(): MorphTo |
||
29 | |||
30 | /** |
||
31 | * Get the extra properties with the given name. |
||
32 | * |
||
33 | * @param string $propertyName |
||
34 | * |
||
35 | * @return mixed |
||
36 | */ |
||
37 | public function getExtraProperty(string $propertyName) |
||
41 | |||
42 | public function getChangesAttribute(): Collection |
||
48 | |||
49 | public function scopeOnLog(Builder $query, ...$logNames): Builder |
||
57 | } |
||
58 |