Manually handling many-to-many relationships
Hi, I have a many to many relationship between my Major and my Course models.
in my Course resource I used to have
I wanted to filter the list of majors available in this select based on the value of another column, I came up with this solution
but without the relationship method the form cannot be submitted properly, because filament no longer knows how to handle my majors and institutions relationship
2 Replies
Is this related?
https://filamentphp.com/docs/3.x/forms/adding-a-form-to-a-livewire-component#passing-the-form-model-after-the-form-has-been-submitted
Not sure if that's what you're looking for, but I just ran across it in the doc's earlier.
I don't think it is, I don't think filament can figure out how to handle my relationship if simply run ->saveRelationship()
Bumping this up