Wizzard multiple entities per each wizzard step

Hello, I have a case where I need a wizzard with several steps, but I need for each step of the wizzard to edit a different model and corresponding record for that model, any idea if it's possible to achieve that?
5 Replies
jamesro
jamesroOP2w ago
@Dan Harrin any idea if this is doable ?
Rolland
Rolland2w ago
i think its doable using relationships
Matthew
Matthew2w ago
Please don't @ people. Yes, as long as you've got relationships between your models, it isn't a problem.
jamesro
jamesroOP2w ago
i don't see any option in wizzard step to set a relation unfortunately
Matthew
Matthew2w ago
https://filamentphp.com/docs/3.x/forms/advanced#saving-data-to-relationships Not sure if it works at wizard step level, but you don't really need it to. You can also just use relation.column syntax on the relevant form fields

Did you find this page helpful?