Relation Manager Resource with pivot - Custom Attach
Hi guys, i create a Relation Manager Resource with pivot. Information:
-> Invoice -> it's the Main Resource
-> Performance -> it's the Relation Manager Resource
-> they have Many to Many relationship.
-> it's work, but i need make a change.
* I have Product table that has Many Performance, So i need on the popup show a Select for Products, when products Select filter the Performance :
The form works but when a click on Attach i got an error:
I imagine that to solve this I should use:
But I do not know how to do it
4 Replies
Why did you comment out
//$action->getRecordSelect(),
? I guess that's your issueI commented it because it adds another field for me. This field works to attach but I need to previously filter by products
product_id should be recordId then
you cant go renaming fields without consequences like that...
i would even advise using
$action->getRecordSelect()
as a base for your select and chaining customization methods onto thatomg
I love filament and this wonderful community more and more
Working: