abagayev/laravel-migration-shortcuts

Let's make migrations DRY

v0.3.0 2023-06-13 20:28 UTC

This package is auto-updated.

Last update: 2024-10-15 22:37:26 UTC


README

GitHub Workflow Status codecov Total Downloads

Migration

This package is here to make migrations DRY again.

For example, add soft deletes migration in a super short way:

use Abagayev\Laravel\MigrationShortcuts\Migrations\AddSoftDeletesMigration;

class AddSoftDeletesToTableMigration extends AddSoftDeletesMigration
{
    protected $table = 'table_name';
}

Current shortcuts supported

Shortcuts coming soon:

  • Rename a column
  • Change column type
  • Add a table
  • Rename a table
  • Delete a table

Features coming soon:

  • Command to create migrations

Contribution

Feel free to add comments, issues, pull requests or buy me a coffee: https://www.buymeacoffee.com/tonybug