Download the PHP package luongolabs/block-migrate without Composer
On this page you can find all versions of the php package luongolabs/block-migrate. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download luongolabs/block-migrate
More information about luongolabs/block-migrate
Files in luongolabs/block-migrate
Package block-migrate
Short Description Run straight code blocks during laravel migrations.
License MIT
Homepage https://github.com/luongolabs/block-migrate
Informations about the package block-migrate
Run code blocks during laravel migrations.
Does what it says on the tin. Run code blocks during laravel migrations with the ability to roll them back, this is based on spatie/laravel-settings mainly the migration creation part.
Installation
You can install the package via composer:
You can publish the config file with:
This is the contents of the published config file:
Usage
Let's say you need to rotate the auth tokens in the application due to a change in your new code, run php artisan make:block-migration RotateAuthTokens to create the migration.
This would create the file database/blocks/2021_08_01_000000_rotate_auth_tokens.php with the following contents:
You can then add your code to the up and down methods, then run php artisan migrate to run the migration.
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Josh Luongo
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of block-migrate with dependencies
spatie/laravel-package-tools Version ^1.93
illuminate/contracts Version ^11.0||^12.0||^13.0