'integer', ]; protected $attributes = [ 'sort_order' => 0, ]; // ========================================================================= // Relationships // ========================================================================= public function formula(): BelongsTo { return $this->belongsTo(QuoteFormula::class, 'formula_id'); } // ========================================================================= // Helper Methods // ========================================================================= /** * 품목 표시 문자열 */ public function getDisplayNameAttribute(): string { $name = "[{$this->item_code}] {$this->item_name}"; if ($this->specification) { $name .= " ({$this->specification})"; } return $name; } }