I'm trying to model with Laravel a database for purchases, in my mysql the relations are thus , then I was modeling in Laravel, for the associative table "supplier_detail_item" I used "belongstoMany" relation, it worked out using tinker.
Now comes the problem:
together with the details (vendor_details) and the items I would like to be able to access the other tables related to "supplier_details" which are "vendor" and "formpag".
I've created a template for "supplier_detail_item", but I'm not exactly sure how to do it.
I did not codify anything, I'm just trying to model the same thing in laravel.
If you have any suggestions on MER I also accept.
Thank you