On this page
article
Validation
Every Field has their own rules implementation to manage how should be treated in the front, you can see more on each Field page
Rules
To set rules, use the rules
method.
TextField("Name", "name").rules("required", "max:40")
Create rules
To set rules that will appear on create
, use the create_rules
method.
Password("Password").create_rules("required", "min:8", "max:40")
Update rules
To set rules that will appear on update
, use the update_rules
method.
Password("Password", "password").update_rules("nullable", "min:8", "max:40")