0

Using Laravel 5.8, I have to copy certain tables and the data stored within each table, from the database A to the database B.

Then, the tables from Db A need to be removed.

Has anyone worked on something like this ?

Ionut Flavius Pogacian
  • 4,682
  • 14
  • 56
  • 98

1 Answers1

0

You can create a command : https://laravel.com/docs/5.8/artisan

Following this issue : How to use multiple databases in Laravel

You can declare 2 databases into Laravel Project, create into your command who select all data what you want DB A and insert to DB B.

Gary Houbre
  • 736
  • 6
  • 20