Open relation manager on table action
Is there a way to open a relationship management modal directly in the filament table? Without having to click edit the record and click add relationship.
3 Replies
So you have a reousrce which shows a table list, then theres an edit window and the relationship manager is in the edit? If so... you should be able to create your own action, on the record say' Add My Relationship' which uses the form from the relationship manager, then in the ->action() save the data accordingly.
That would be it, but I didn't find a way to do it in the filament documentation, I tried with the gpt chat too but it gave me solutions that didn't work
Don't use chatGPT it's not relavent really.
Two mins, i'll writ eoyu a base
In your ->actions([]) add
Very rough base
This is for a hasMany relationship but gives you the idea