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 tags:Open Sourceβ€’Developer Toolsβ€’GitHub
Launch Team / Built With
Unblocked AI Code Review
Unblocked AI Code Review
High-signal comments based on your team's context
Promoted

What do you think? …

Mahmoud Ramadan
Maker
πŸ“Œ

πŸ‘€ 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.