givebloodorg / doesangue-core

Online platform that connects people interested in blood donation
https://givebloodorg.github.io
MIT License
87 stars 15 forks source link

Implement a following/follower system #40

Closed JoseCage closed 6 years ago

JoseCage commented 7 years ago

Because sometimes a user need to Stay updated or follow another user (or maybe a blood bank), so i think this feature will be very helpful.

To do that we need to create followers table where we will define a user_id (the user that logged in/the follower) and follow_id (the user that will be followed). Also we need to have a FollowerController where we will have our methods to follow, unfollow users, check how many followers and how many following.