Closed mbdmt closed 10 months ago
我想要選擇後回貼顯示兩個欄位組合的值 例如 姓名+email這樣
$form->selectTable('members_id','選擇會員') ->from(UserTable::make()) ->model(Models\Member::class, 'id', 'MyTitle') ->required();
嘗試models裡用訪問器自訂欄位名, 但無效
public function getMyTitleAttribute() { return "{$this->name} {$this->email}"; }
加在titleColumn也不支援訪問器 $grid->rowSelector()->titleColumn('MyTitle');
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Description:
我想要選擇後回貼顯示兩個欄位組合的值 例如 姓名+email這樣
Steps To Reproduce:
$form->selectTable('members_id','選擇會員') ->from(UserTable::make()) ->model(Models\Member::class, 'id', 'MyTitle') ->required();
嘗試models裡用訪問器自訂欄位名, 但無效
加在titleColumn也不支援訪問器 $grid->rowSelector()->titleColumn('MyTitle');