Custom Fresh

Custom Fresh

Create exceptions for tables that do not need to be dropped

6 followers

A Laravel package to specify the tables that you do not want to drop while refreshing the database.
Custom Fresh gallery image
Free
Launch Team / Built With
AppSignal
AppSignal
Get the APM insights you need without enterprise price tags.
Promoted

What do you think? …

Mahmoud Ramadan

👀 Why this package?

Custom Fresh offers fine-grained control over migrations within your Laravel project, enabling you to select which tables will not be dropped when refreshing the database.

📦 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.

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

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