Skip to content

abagayev/laravel-migration-shortcuts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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