iyaa
Export Action didn't Export A Defined Column
Im trying to export a table of temporary password into xlsx & csv. The migration and model is pretty simple
model
and here's the exporter class
When I try to export, the field ID and nis exported to the xlsx & csv, but the plaintext_password didnt.
I already tried to add
protected $hidden = [];
on the model yet it didnt work1 replies
Create Repeater Data on handleRecordCreation
Is there a way to create datas from Repeater on handleRecordCreation. Here's the case, I need to create a BuyingInvoice and BuyingInvoiceItem (it comes from the Repeater so there'll be some BuyingInvoiceItem ) on handleRecordCreation. Because I need to the id from the created BuyingInvoice and BuyingInvoiceItem s to create a StockUpdate that have the foreignId of BuyingInvoice and BuyingInvoiceItems
Here's one of the BuyingInvoiceItem's data array
before I post this, I already try this way on the handleRecordCreation, well it works! BUT after the handleRecordCreation finished, it creates another BuyingInvoiceItems that comes from the Repeater
so the result on the Database there are two BuyingInvoiceItems with the exact same data just ith the different Id (because the data from Repeater created twice, the first one is on the handleRecordCreation that I made myself, and the other one is from outside the handleRecordCreation I guess?)
How to solve this so that the BuyingInvoiceItems didnt duplicated
1 replies