Skip to content

A Laravel package to specify the tables that you do not want to drop while refreshing the database.

Notifications You must be signed in to change notification settings

mahmoudmohamedramadan/custom-fresh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Custom Fresh

Custom Fresh

License Latest Version on Packagist Total Downloads


Custom Fresh allows fine-grain control of migrations inside your Laravel project, where you can choose which tables will not be dropped while refreshing the database.

Warning

Always consider upgrading the package to the latest version (v1.1.6), which is the most stable release.

Installation

Install the package by using Composer:

composer require ramadan/custom-fresh

Usage

After installing the package, you will see a new fresh:custom command.

Note

The package also guesses the additional migration files that add a special column (e.g., ****_**_**_******_adds_is_admin_column_to_users_table.php).

Refreshing migrations

You can exclude specific tables while refreshing the database inside your project:

php artisan fresh:custom users,foo

Tip

Do not forget to always use the -h of the command to check out all supported options.

Example

Command Example

Credits

Support me

License

The MIT License (MIT).