'integer', 'files' => 'array', 'effective_date' => 'date', 'end_date' => 'date']; public function change(): BelongsTo { return $this->belongsTo(CourierQuoteChange::class, 'source_change_id'); } public function sourceQuote(): array { return [ 'id' => 'STOCK-' . $this->id, 'courier_expcode' => $this->courier_expcode, 'billing_rules' => data_get($this->change?->quote_payload, 'billing_rules'), 'company_name' => $this->courier_name, 'sheet_name' => $this->sheet_name, 'quote_type' => $this->quote_type, 'source_range' => $this->source_range, 'values' => json_decode($this->values_json, true, 512, JSON_THROW_ON_ERROR), 'formulas' => json_decode($this->formulas_json, true, 512, JSON_THROW_ON_ERROR), ]; } }