star-cloud/app/Models/System/UiBundleItem.php
terrylee a0c2ab3207 feat(app-ui): APP UI元素設定 Phase 1 — 後台三頁(元素/組合/機台綁定)+ B014 UISet 下發
- ui_elements/ui_bundles/ui_bundle_items 三表 + Models(TenantScoped)
- config/ui_parts.php 部位定義(Phase 1 啟用 A1/A2/A3 滿版)
- UiElementController 三頁 CRUD + 圖片上傳(ImageHandler storeAsWebp)
- 機台綁定存 machines.settings['ui_bundle_id']
- B014 getSettings 新增 UISet(部位→絕對圖URL,mirror B005)
- 解除 sidebar APP管理 註解 + can:menu.app + 權限白名單
- zh_TW/en 翻譯

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-17 11:06:43 +08:00

29 lines
537 B
PHP

<?php
namespace App\Models\System;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class UiBundleItem extends Model
{
use HasFactory;
protected $fillable = [
'ui_bundle_id',
'part_key',
'ui_element_id',
'color_value',
];
public function bundle()
{
return $this->belongsTo(UiBundle::class, 'ui_bundle_id');
}
public function element()
{
return $this->belongsTo(UiElement::class, 'ui_element_id');
}
}