How to create a resource record from another resource?
Hello, I'm creating a Booklet record from a modal in my Customer resource.
The record is being saved, but I'm not getting the created notification. How can I properly create the record this way?
This is my action button in my customers table:
3 Replies
Summarizing, what I'm trying to do is create a CreateAction for the Booklet model, but inside the CustomerResource table.
Is it possible to bring the BookletResource form into the modal?
You can use a relation manager (https://filamentphp.com/docs/3.x/panels/resources/relation-managers) for a UXed solution, or you can use the method after() into the Action to trigger the Notification.
Couldn't create the Booklet into the modal using the relation manager, but worked like a charm in the Customer edit page.
Thank you, sir!