beforeInsert Validation for unique data |
Hi.
I want to verify again before saving the content in the model file. I want the category name on the form to check if it is in the same sector. There may be a category with the same name in different sectors. So I can't set is_unique directly. How can I add the custom error message as well? PHP Code: protected $validationRules = [ |
Welcome Guest, Not a member yet? Register Sign In |