laravel voyager is cool, but how to migrate these tables\setting\breads from development to product instance? especially for those develop once, deploy multiple time, how could it be done gracefully?
as for laravel, the native database migration/seeder is good for this purpose
I recommend using 3rd party tools to generate both migrations and seeds from your existing database tables.
Generate migrations: https://github.com/Xethron/migrations-generator
Generate seeds: https://github.com/orangehill/iseed
Files like DataRowsTableSeeder.php have already been created by Voyager - Iseed will want to overwrite them. If this is not acceptable to you, I have created a fork+pull request which allows you to explicitly specify the file/class name when running Iseed: https://github.com/mattrabe/iseed
For Migration, just create migration and run migrate command.
For BREAD, use this package which will listen to the Voyager BREAD (ADD, Update, Delete) Events and will generate the respective seeder file.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With