Is there any way to update the entire database eloquently with the Laravel(API)?

Asked

Viewed 84 times

-1

I am creating an api and I want to create a method that updates everything but not I know if eloquent has this feature. It’s because I created an app (offline) that sends me all the data at once to update in the database.

1 answer

0

Eloquent has a very robust structure and Eloquent provides some native API facilities. I never used to update the entire bank but I know two ways to update bank massively in the eloquent Migrations and Seeds:

  • Migrations is to create or modify structures, I believe it is not what you seek but anyway, gets the link.
  • Seeds sends data to the bank, as far as I know only makes Inserts, I did not use otherwise. A Seed class updates one or more tables with data and can perfectly be accessed via API. You can study the structure of this class, create the upload file for the bank and free up its access via API, I think it solves. Ah, you probably have something ready to generate this file on the Laravel.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.