orator
orator copied to clipboard
how to providde validation model attributes in orator orm?
trafficstars
@sdispater can you tell me how to give validation for model fields?
For now, there is no built-in validation system.
However, if you want to ensure the model is correct before saving it you can use events like documented in the documentation: https://orator-orm.com/docs/0.9/orm.html#cancelling-save-operations-via-events
@vimox-shah I have a library that can help with that, I'm working on a new documentation side for it.
https://github.com/alfonsocv12/orator_validator