how to a send friend request while the user table and the friends table are in relation in php using yii2?
<p>I have a user table with the user details and a friends table with userid(FK),friendid,and status(enum->SEND,ACCEPT,BLOCK) now i need to search for the friend by entering the friends name and after that i need to send request that friend and after sending the request to the friend when he logged in to his account there must be a notification about the friend request...</p>