Looking to hire Laravel developers? Try LaraJobs

laravel-migration-builder maintained by blackbricksoftware

Description
Programmatically create full Laravel migrations.
Author
Last update
2024/10/02 22:08 (dev-master)
License
Links
Downloads
120

Comments
comments powered by Disqus

Laravel Migration Builder

Description

Programmatically define table and column definitions, and write a migration file. This is useful when you want to create migrations from an external source, such as an API, to store data locally. See here for an example usage.

Installation

To install the Laravel Migration Builder package, follow these steps:

Install package

composer require blackbricksoftware/laravel-migration-builder --dev

Publish configuration

php artisan vendor:publish --tag=laravel-migration-builder-config

Usage

To create a migration using the example command, follow these steps:

See src/Commands/ExampleCommand.php for an example.

Run php artisan make:migration-builder:example to create a migration with this example.

Acknowledgements

  • Andrew Hanks for this article on how to make a Reddit package.
  • Iftekhar Rifat for this repo with a good starting spot for programmatically creating migrations.
  • Vitaliy Dotsenko for this write-up that fixed my autoloading.