hasMany(UiBundleItem::class); } /** * 以 part_key 為鍵的內容對照(方便下發與表單回填)。 */ public function itemsByPart() { return $this->items->keyBy('part_key'); } }