Create multiple records at once

Hi, I need create multiple records at once.
I am thinking on use handleRecordCreation function on my createPage but I do not know how to do this requirement.
At the moment of the creation I have the following data:
array:7 [▼ // app\Filament\Resources\PurchaseOrderResource\Pages\CreatePurchaseOrder.php:113
  "number" => "PO-0009-2023"
  "date" => "2023-08-08 17:48:32"
  "required_date" => "2023-08-25"
  "amount" => 22610
  "order_status_id" => 1
  "business_partner_id" => array:2 [▼
    0 => "2248"
    1 => "2250"
  ]
  "PurchaseOrderAssets" => array:2 [▼
    0 => array:6 [▼
      "enable" => true
      "asset_id" => 10012
      "price" => "2231.00"
      "quantity" => "10.00"
      "amount" => "22310.00"
      "business_partner_id" => 2248
    ]
    1 => array:6 [▼
      "enable" => true
      "asset_id" => 10038
      "price" => "300.00"
      "quantity" => "1.00"
      "amount" => "300.00"
      "business_partner_id" => 2250
    ]
  ]
]

I need create 2 records on PurchaseOrder table and each one with the PurchaseOrderAssets respective.

Thanks in advance!
image.png
Was this page helpful?