Jun 7, 2021
0
Level 7
Equelent attach multi layers deep.
Hi All,
I have 3 models
- User
- Pricelist
- Price
1 have 2 pivot tables
priceslist_user and price_pricelist
i now have user->pricelists working via pivottable by attach() only i want to do user-pricelists->prices.
on pricelists i have a thisBelongsToMany for prices() only this is not giving the prices.
is there a normal way in laravel to do this?
Please or to participate in this conversation.