haizone
1 year ago

how to make that in Eloquent

Posted 1 year ago by haizone

hi i need a littlebit help with my tables:

table: product:
  -id
  -name

table: spec:
  -id
  -product_id
  -name

table: bizproduct:
  -id
  -name

 table: bizProductSpec:
  -id
  -bizproduct_id
  -spec_id
  -value

how i make that and use with laravel?

how to make the relation betwen bizProductSpec and spec and bizproduct tables

and how to make hasMany and belogs to

i try but its didnt work to me :/

Please sign in or create an account to participate in this conversation.