Laravel validation before saving

How to validate if there is already data in the table for the same identification.

example user_id = 1 and book_id = 2

i can't save again user_id = 1 and book_id = 2 only user_id = 1 and book_id = 3