LaravelPackages.net
Acme Inc.
Toggle sidebar
abagayev/laravel-migration-shortcuts

Let's make migrations DRY

1.043
16
v0.3.0
About abagayev/laravel-migration-shortcuts

abagayev/laravel-migration-shortcuts is a Laravel package for let's make migrations dry. It currently has 16 GitHub stars and 1.043 downloads on Packagist (latest version v0.3.0). Install it with composer require abagayev/laravel-migration-shortcuts. Discover more Laravel packages by abagayev or browse all Laravel packages to compare alternatives.

Last updated

Laravel migration shortcuts

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

Star History Chart