8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
如題
if ($form->isCreating()) { $form->text('username', 'Username')->required(); } else { $form->display('username', 'Username'); }
我希望 username這個欄位,只有在新增的時候可以編輯,修改之後就不能編輯了 請問該怎麼寫才對 謝謝回覆
The text was updated successfully, but these errors were encountered:
if ($form->isCreating()) { $form->text('username', 'Username')->required(); } else if ($form->isEditing()) { $form->text('username', 'Username')->disable(); } $form->saving(function (Form $form) { if ($form->isEditing()) { $form->deleteInput(['username']); } }
Sorry, something went wrong.
No branches or pull requests
如題
if ($form->isCreating()) {
$form->text('username', 'Username')->required();
} else {
$form->display('username', 'Username');
}
我希望 username這個欄位,只有在新增的時候可以編輯,修改之後就不能編輯了
請問該怎麼寫才對
謝謝回覆
The text was updated successfully, but these errors were encountered: