laravel-nomadic
laravel-nomadic copied to clipboard
A toolkit of enhancements to laravel's migrations.
laravel-nomadic
A powerful configuration based toolkit of enhancements to Laravel's migrations. This exposes an event driven design so that developers can create reusable functionality that executes automatically using the same developer workflow.
Features
-
Hooks - Use pre/post hooks for migration commands:
make:migration
,migrate
, andmigrate:rollback
-
Stubs - Add developer notes to the generated migration
-
Schema - Associate extra data within your
migrations
table
id | migration | batch | author | comments | rollback |
---|---|---|---|---|---|
1 | 20200811_CreateTable | 1 | John | Stores data for product x | NULL |
2 | 20200812_AddData | 1 | Jack | Populate product x features | NULL |
3 | 20200812_UpdateData | 2 | Jane | Fix description typo | {desc: "Grate product."} |
-
Traits - Add reusable functionality to every migration, via traits. Bonus: You can use hooks here too!
Installation
-
composer require chrishalbert/laravel-nomadic
- Add the Service Provider to the config/app.php:
'providers' => [
/**
* Custom Providers...
*/
ChrisHalbert\LaravelNomadic\NomadicServiceProvider::class,
]
3, Publish default configs/nomadic.php: php artisan vendor:publish
Feature Requests/Bugs
Submit feature requests or bugs to laravel-nomadic issues.
Services
Do you have an internal need or enhancement you care not to share with the world?
I can help!
Reach out to me directly for rates, scope and your business needs. I can furnish an NDA as needed.