1 | <?php |
||
12 | class StoredEvent extends Model |
||
13 | { |
||
14 | public $guarded = []; |
||
15 | |||
16 | public $timestamps = false; |
||
17 | |||
18 | public $casts = [ |
||
19 | 'event_properties' => 'array', |
||
20 | 'meta_data' => 'array', |
||
21 | ]; |
||
22 | |||
23 | public static function createForEvent(ShouldBeStored $event): self |
||
33 | |||
34 | public static function getMaxId(): int |
||
38 | |||
39 | public function getEventAttribute(): ShouldBeStored |
||
46 | |||
47 | public function getMetaDataAttribute(): SchemalessAttributes |
||
51 | |||
52 | public function scopeWithMetaDataAttributes(): Builder |
||
56 | |||
57 | public function scopeAfter(Builder $query, int $storedEventId) |
||
61 | } |
||
62 |