wing5wong
create and attach related models when creating resource
Thanks dennis. for this id like to create an amount of generic uniform items (this could be a field in the form).
If im correct, i would need to start here -
https://filamentphp.com/docs/3.x/panels/resources/creating-records#customizing-the-creation-process
1) Create the team
2) Create X number of uniforms and attach them to the team
$team->saveMany($uniforms)
3) return the Team
Does that sound right?7 replies