So I have a
Term model (and corresponding migration).
Term has fields
term. It's used to hold things like tags and categories.
So, say for a "movies" category you would create it with:
Term::create(['taxonomy' => 'category', 'term' => 'movies']);
You could still have a "movies" tag:
Term::create(['taxonomy' => 'tag', 'term' => 'movies']);
But once a "movies" category has been created, you shouldn't be able to create another. I.e. there is a composite unique field between
Is there a way to define such a validation rule for this?