jgill88/git-checkout-db

This package will create and seed a new database when you check out git branches.

v1.0.6 2018-02-14 01:12 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