'integer']; public function change(): BelongsTo { return $this->belongsTo(CourierQuoteChange::class, 'quote_change_id'); } public function actor(): BelongsTo { return $this->belongsTo(user_model_class(), 'created_by'); } public function eventLabel(): string { return match ($this->event_type) { 'created' => '创建草稿', 'saved' => '保存草稿', 'submitted' => '提交审核', 'returned' => '退回修改', 'approved' => '审核通过', default => $this->event_type, }; } }