Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Fixed the bug of unregistered types May 15, 2019
tests Separated classes, preparing for unit testing, added hash May 13, 2019
.gitignore
LICENSE Added license May 11, 2019
README.md Grammar mistake in README May 11, 2019
composer.json Update to version v0.1.3beta May 17, 2019
phpunit.xml Separated classes, preparing for unit testing, added hash May 13, 2019

README.md

generate-migrations-hook

This is a simple hook for Laravel Voyager, its job to generate a migration after each database schema change.

I like using Laravel Voyager, it really handles all the headache of creating the CRUD UI of the application, because I use Voyager for most of my small projects, there's one thing bothers me when it comes to using it, database!

Because it updates the database in place, so there's no migration created, this is an issue if you made change and want to deploy it to your remote host, that's why I tried to make this little hook to handle the automatic creation of migrations.

Todo

[ ] Write tests

[ ] Minor refactoring and code clean up

Limitations

  • No down() migration, only up()
  • The file and class names are not very detailed.
  • It generates a migration even if no changed happened to the table.

Contribution

Your PR all welcome :)

You can’t perform that action at this time.