unique rules depending on other field

i have field volume_name and book_name in sections table i want a rule that make unique book_name depends on volume name volume_name book_name volume 1 book 1 volume 1 book 2 so when i encode volume 1 book 1 it will have validated error. Here's my code
No description
5 Replies
Solution
toeknee
toeknee2mo ago
hrvzmndz
hrvzmndzOP4w ago
cant get it
hrvzmndz
hrvzmndzOP4w ago
No description
hrvzmndz
hrvzmndzOP4w ago
i got it thank u
No description
toeknee
toeknee4w ago
Well done

Did you find this page helpful?