crocodic-studio / laravel-db-packer
Tool to pack the existing laravel database
v1.3
2018-11-07 06:03 UTC
Requires
- php: >=5.6.0
- xethron/migrations-generator: 2.*
This package is not auto-updated.
Last update: 2025-03-09 10:39:26 UTC
README
This tool develop to make auto migrations your all tables in database included the data.
So you can easily make a collaboration wih your team in GIT, or you can publish your project easily without any sparate database file.
How To Install
composer require crocodic-studio/laravel-db-packer
- Put this
Crocodic\LaravelDBPacker\LaravelDBPackerServiceProvider::class
to /config/app.php atProviders
section.
How To Pack
php artisan packer:pack
Pack with table exception
php artisan packer:pack --ignoreTable="table1,table2,table3"
Pack with table data exception
php artisan packer:pack --ignoreTableData="table1,table2,table3"
And you may combine two options.
How To Unpack
This command will restore tables and data
php artisan packer:unpack
Credits
Laravel Migrations Generator