I am a newbie at Laravel framework and trying to work me in. I already understand how to generate N:M relationships and handle them inside the models. Now I am asking you how to fill an additional field inside the many to many tables?
For example:
Table Foo
Table User_Foo
- user_id
- foo_id
- is_owner (bool)
Table User
Now I want to declare which of the foo users is the real owner. In my opinion, the N:M Table has stored this information an not the Foo itself. So how is it possible to declare those additional fields inside of my Foo and User model?