© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
33 replies
einnlleinhatt_

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
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Scoping belongsToMany relationship?
FilamentFFilament / ❓┊help
3y ago
BelongsToMany relationship in Repeater
FilamentFFilament / ❓┊help
3y ago
Single select with belongsToMany relationship
FilamentFFilament / ❓┊help
3mo ago
Problems figuring out BelongsToMany relationship
FilamentFFilament / ❓┊help
3y ago