Many validation rules can be inferred from the database, such as if the field is required or not, bool, string or numeric, unique, and so on (password fields can be inferred to have a confirmed as well).
We should have an Artisan command that reads this and creates the Ardent model.
Additionally, we could add a docblock with all fields.
Many validation rules can be inferred from the database, such as if the field is required or not, bool, string or numeric, unique, and so on (password fields can be inferred to have a confirmed as well).
We should have an Artisan command that reads this and creates the Ardent model.
Additionally, we could add a docblock with all fields.