Many to many with additional columns / FK's
Since a few months i'm working with Laravel and i love it, came from codeigniter.
I have a question based on the ORM of laravel with many to many.
I have three tables:
But in the post_user i want additional data, so i have:
- user_id (sender )
- list_id ( in which list the post was sended )
- user_id (receiver)
- status ( accept of denied by receiver )
Normally you combine only the user_id and the post_id. How do i handle the other two? Maby its not a Laravel solution but a database one, so please let me know it that might be.
Thnx allready for the effort!
Want to reply to this thread?Login with github.