blackbricksoftware / laravel-migration-builder
Programmatically create full Laravel migrations.
v11.0.0
2024-09-24 21:20 UTC
Requires
- php: ^8.2
- illuminate/database: ^11.0
- illuminate/filesystem: ^11.0
- illuminate/support: ^11.0
README
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.