How do I create a relation manager for a pivot table
Hello,
I have a Container class and I have a Transporter class. i have a pivot table with transporter_id, container_id and price called container_transporter.
I would like to manage the containers and price in the transporter resource.
I have setup my models like this:
How do I set this up in the relationmanager?
2 Replies
Hey did you get the solution to this
I think you can use repeaters for this.
- Add hasMany relationship model to pivot table. In your case, Transporter model should have something like :
- Use this relationship in repeater