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.
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 auser_id
(the user that logged in/the follower) andfollow_id
(the user that will be followed). Also we need to have aFollowerController
where we will have our methods to follow, unfollow users, check how many followers and how many following.[ ] Create
Follow
Model andmigration
[ ] Add relation with
users
andfollowers
tables[ ] Create
FollowController
follow
featureunfollow
feature