Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

theProfit's avatar

Equelent attach multi layers deep.

Hi All,

I have 3 models

  1. User
  2. Pricelist
  3. 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?

0 likes
0 replies

Please or to participate in this conversation.