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 |
||
34 | |||
35 | public static function getMaxId(): int |
||
39 | |||
40 | public function getEventAttribute(): ShouldBeStored |
||
47 | |||
48 | public function scopeAfter(Builder $query, int $storedEventId) |
||
52 | } |
||
53 |