themindoffice / dbsync
Sync your environment databases
dev-master
2019-08-09 10:16 UTC
Requires
- ifsnop/mysqldump-php: ^2.7
This package is auto-updated.
Last update: 2024-10-20 19:58:59 UTC
README
#Installation
Install with composer require --dev themindoffice/dbsync
Upon installation, composer is instructed to execute the install method on the provider.
This will add the dbsync.php
config file to the config folder in your laravel installation.
It will automatically add this config file to the gitignore file.
#Config
Add your environments to the dbsync.php
config file.
#Usage
call php artisan db:pull {environment}
to fetch the database from that environment.
call php artisan db:push {environment}
to push your database to the that environment.