Skip to content

Latest commit

 

History

History
46 lines (32 loc) · 1.52 KB

README.md

File metadata and controls

46 lines (32 loc) · 1.52 KB

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