mercredi 7 avril 2021

how to get updated records ids in laravel?

I am updating multiple rows in laravel .

 StoragePeriod::where('customer_id', $invoice->customer_id)->update(['invoice_id' => $invoice->id]);

How I can get ids of those updated records?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire