Back
hasErrors()
Returns true
if the object has any errors.
You can also limit to only check a specific property or name for errors.
// Check if the post object has any errors set on it if(post.hasErrors()){ // Send user to a form to correct the errors... }
Copied!