I have created the ability to add and remove friends in a laravel app using a pivot table and many to many relationship.
I am now stuck on the best way to handle blocking a member from friending another.
Right now I have a 'blocked' table with timestamps, blocked_user and created_by.
What would be the best way to check is that relationship exists in the block table before adding the friend?