1 | <?php |
||
11 | class StoredEvent extends Model |
||
12 | { |
||
13 | public $guarded = []; |
||
14 | |||
15 | public $timestamps = false; |
||
16 | |||
17 | public $casts = [ |
||
18 | 'event_properties' => 'array', |
||
19 | 'meta_data' => 'array', |
||
20 | ]; |
||
21 | |||
22 | public static function createForEvent(ShouldBeStored $event): self |
||
32 | |||
33 | public static function getMaxId(): int |
||
37 | |||
38 | public function getEventAttribute(): ShouldBeStored |
||
45 | |||
46 | public function getMetaDataAttribute(): SchemalessAttributes |
||
50 | |||
51 | public function scopeWithMetaDataAttributes(): Builder |
||
55 | } |
||
56 |