$form->text('baz');
$form->hidden('user.foo');
$form->saving(function (Form $form) {
/** 錯的
報間接修改過載屬性錯誤
Indirect modification of overloaded property
**/
$form->user['foo'] = $form->baz;
//正確寫法
$form->user = ['foo' => $form->baz];
});
本作品採用《CC 協議》,轉載必須註明作者和本文連結