Validation
model-form
uses Laravel
's validation rules to verify the data submitted by the form:
You can also customize the error message for the validation rule:
If you want to allow the field to be empty, first in the database table to face the field set to NULL
, and then
Please refer to the more rules Validation.
Create page rules
Only effective when creating a form submission
Update page rules
Only effective when the update form is submitted
Database unique check
A more common scenario is to submit a form to check if the data already exists. You can use the following method:
Last updated