1 year ago

View to manage Many-to-Many relationships between two models

Posted 1 year ago by lmartins

Hi, I have two models linked by a Many-to-Many relationship, and I'm struggling to find a reliable approach to build the blade view where these relationships can me managed.

Model A - Purchases Model B - Demographics

Goal is to have a admin screen for Purchases, where I list all available Demographics, each one with a checkbox and for those already linked to the Purchase with the corresponding checkbox selected.

How would you typically approach this?

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