Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Laravel seed database from existing database

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 ?

like image 855
Vince Carter Avatar asked Sep 21 '16 21:09

Vince Carter


1 Answers

Try: Examples:

php artisan iseed my_table
php artisan iseed my_table,another_table

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

like image 54
Agidigbi Ayodeji Victor Avatar answered Sep 19 '22 11:09

Agidigbi Ayodeji Victor