Skip to content
Synchronize your production and development databases with a simple command
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
composer.lock Update Apr 5, 2019
phpunit.xml First commit Mar 25, 2019

Laravel database synchronizer

Latest Version on Packagist Total Downloads Build Status StyleCI Scrutinizer Code Quality

Keep your production and development databases in sync

This package will completely synchronize the database specified as "from" and "to" in the config or through the command options.

Want to collaborate? Nice! Take a look at to see a to do list.


Via Composer

$ composer require mtolhuijs/laravel-database-synchronizer

Optionally you can run php artisan vendor:publish --provider mtolhuijs\LDS\DatabaseSynchronizerServiceProvider which will create a config file in the root config folder to adjust the behavior of the package.


This package comes with 1 command:

  • php artisan db:sync Synchronizes your "from" database with your "to" database
{ --from= : Synchronize data from this database instead of the one specified in config }
{ --to= : Synchronize data to this database instead of the one specified in config }
{ --t|tables=* : Only run for given table(s) }
{ --st|skip-tables=* : Skip given table(s) }
{ --l|limit= : Limit query rows (defaults to 5000) }
{ --truncate : Truncate before inserting data }

Change log

Please see the changelog for more information on what has changed recently.


Please see for details and a todolist.


If you discover any security related issues, please email author email instead of using the issue tracker.



license. Please see the license file for more information.

You can’t perform that action at this time.