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

philipbaginski's avatar

Relationships

Hi to everyone! I face a problem and need advice:

I'm on the way to rewrite exysting app from CI to Laravel using Nova. In existing app I have table A with recource A, and have table B with resource B. And I have a table C, working as a pivot table with id of A, id of B and 30 columns more, only existing in this table. Let's name this table C. Resource B has many A, and resource A, belongs to many B.

What kind of function should I use to be able to attach resource A to resource B and in the same time to be able edit some of these 30 columns I have in table C?

0 likes
1 reply

Please or to participate in this conversation.