Relationship belongstoMany

Good evening, I tried to make my own portfolio using filament since I'm not good at frontend.

My goal is a project can have many tags and a tags can have many project too. For example

Project A Tag1, Tag2, Tag3
Project B Tag2, Tag3
Project C Tag3

I followed the filament code source on GitHub for the database migration. On the filament demo, a product can have multiple categories. So I check the database migration for tables product, there is no category_id in it but I can create a product with multiple categories.

In my case I need to add foreignUuid for tag_id inside my projects table.

Anyone can explain to me ?
Solution
Check this, it's working for many-to-many
Was this page helpful?