Back
validatesPresenceOf()
Validates that the specified property exists and that its value is not blank.
// Make sure that the user data can not be saved to the database without the `emailAddress` property. (It must exist and not be an empty string)
validatesPresenceOf("emailAddress");
Copied!