Looking to hire Laravel developers? Try LaraJobs

laravel-migration-shortcuts maintained by abagayev

Description
Let's make migrations DRY
Author
Last update
2023/06/13 22:28 (dev-master)
License
Links
Downloads
1 044

Comments
comments powered by Disqus

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