ramadan / custom-fresh
A Laravel package to specify the tables that you do not want to drop while refreshing the database.
Fund package maintenance!
Paypal
mahmoudmohamedramadan
Buymeacoffee
Patreon
Installs: 133
Dependents: 0
Suggesters: 0
Security: 0
Stars: 12
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/ramadan/custom-fresh
Requires
- php: ^8.2
- ext-pdo: *
- laravel/framework: ^10.0|^11.0|^12.0
README
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.
Warning
Always consider upgrading the package to the latest version, 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
Important
Do not forget always to use the -h of the command to check out all supported options.
Example
Credits
Support me
License
The MIT License (MIT).

