Skip to content

nwogu/bagpack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bagpack

Organize your bulky migration files into tabled directories.

Ever worked on a large laravel project with huge migration files, and it's a mess trying to figure out all the related migration files specific to a table?

That's what Bagpack does. It allows you to group your migration files into directories so you can easily find all the histories related to a particular schema table.

Before Bagpack

alt text

After Bagpack

alt text

Installation.

Install via composer:

composer require nwogu/bagpack

You're all set and ready. All your migration generations will now be grouped into tabled directories.

Configurations.

You may optionally publish the config file by running:

php artisan vendor:publish --tag bagpack

Packaging Migration Files.

To package existing migration files into tabled directories, run:

php artisan migration:package

You can optionally pass a --path flag to specify a full path to your migration directory. Defaults to database/migrations.

Roll back Packaged Migration Files.

To rollback packaged migration files, run:

php artisan migration:package --rollback

You can also pass -r for shorter syntax.

Disbaling Bagpack

You can disable bagpack from running by setting run to false in your config file

About

Organize your migration files into tabled directories

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages