Laravel seed database from existing database

Vince Carter picture Vince Carter · Sep 21, 2016 · Viewed 13.9k times · Source

i have now new structure of my database, but i need to import the old data in the new format. For that reason i want to use the Laravel seeder, but i need somehow to connect to the old database and make select queries and to tell the seeder how to put the data in the new database.

Is that possible ?

Answer

Agidigbi Ayodeji Victor picture Agidigbi Ayodeji Victor · Apr 25, 2017

Try: Examples:

php artisan iseed my_table
php artisan iseed my_table,another_table

Visit: https://github.com/orangehill/iseed