dimanche 25 avril 2021

Database comparison with Larvavel Framework, is my conncept correct?

I am using the MVC framework from Laravel. My goal is to compare records from at least two different database servers and tell which data is missing. To do this, I need to establish at least two connections to the different servers under Laravel. Do I have to create this connection under Model to do the SQL queries with the controller? If I have created these connections under Model, is it possible to join the tables from the models with the controller? Can anyone recommend me an example or good documentation on how to build two models with different database connections? Are there even better software architecture patterns I can consider than MVC?

Aucun commentaire:

Enregistrer un commentaire