mehedi's avatar

Synchronize data on my Database

Hello !

I have a eCommerce sites order API. Which is a long JSON Object . Every day it will be updated. I mean some new data append this JSON Object.

My question is how can i insert this data on my other database table. It contain various data field but order ID is Unique on every row . I actually want to synchronizing data to this API and my database table. How can i do this process using Laravel Eloquent ORM.

Regards

Mehedi hasan

0 likes
1 reply
hajrovica's avatar

Hi simplifying process would be

  • Read Json in to array/collection object
  • iterate through it
  • and update DB accordingly

also there is question will you be updating already existing entries or just adding new entries.

Please or to participate in this conversation.