Chron
2 months ago
152
1
Laravel

Is there a validation for duplicate key entry combinations?

Posted 2 months ago by Chron

For example, Model1 id is 1 and Model2 id is 3, I know unique validation exists but it's only for one column, what if I want to check if the combination of keys are unique?

Please sign in or create an account to participate in this conversation.