jgill88 / git-checkout-db
This package will create and seed a new database when you check out git branches.
This package's canonical repository appears to be gone and the package has been frozen as a result.
v1.0.6
2018-02-14 01:12 UTC
Requires
- php: ~5.6|~7.0
- illuminate/support: ~5.1
Requires (Dev)
- friendsofphp/php-cs-fixer: ^1.0
- mockery/mockery: 0.9.*
- orchestra/testbench-browser-kit: ~3.1
- phpunit/phpunit: ~4.0||~5.0
This package is not auto-updated.
Last update: 2020-12-18 22:54:57 UTC
README
What is this repository for?
- Git checkout DB is a Laravel package that will install a git hook. When you checkout or create branches, a new database will automatically be created, migrated, and seeded. Your configuration will be updated to reflect this. If the database exists already, the configuration will just be updated.
- V1.0.0
How do I get set up?
- Install the package as a dev dependency by doing:
composer require-dev jgill88/git-checkout-db
- Install the git hook (optional)
php artisan git-checkout-db:install-hook
- Publish the configuration by
php artisan vendor:publish
- Edit the configuration in config/git_checkout_db.php to add any seeders that you need to setup your database.
Contribution guidelines
- Writing tests
- Code review
- Other guidelines