I have 3 tables: user,posts and followee_posts.
I have set a model called 'followee' that should relate followee to a user.
Also have pivot table that contains 'follower_id' and 'followee_id'.
I have also set a model called 'Followee.php'
I have set the many-to-many relatioship inside it.
Now what else I need to do so a user can press a button and the user selected will be added to the followee pivot table?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire