PHPackages                             ramadan/custom-fresh - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. ramadan/custom-fresh

ActiveLibrary[Database &amp; ORM](/categories/database)

ramadan/custom-fresh
====================

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

v1.1.9(2w ago)13138MITPHPPHP ^8.2

Since May 21Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/mahmoudmohamedramadan/custom-fresh)[ Packagist](https://packagist.org/packages/ramadan/custom-fresh)[ Docs](https://github.com/mahmoudmohamedramadan/custom-fresh)[ Fund](https://buymeacoffee.com/mmramadan496)[ GitHub Sponsors](https://github.com/sponsors/mahmoudmohamedramadan)[ RSS](/packages/ramadan-custom-fresh/feed)WikiDiscussions 1.x Synced 1w ago

READMEChangelog (10)Dependencies (2)Versions (25)Used By (0)

Custom Fresh
============

[](#custom-fresh)

[![Custom Fresh](https://raw.githubusercontent.com/mahmoudmohamedramadan/custom-fresh/refs/heads/main/assets/custom-fresh.png "Custom Fresh")](https://raw.githubusercontent.com/mahmoudmohamedramadan/custom-fresh/refs/heads/main/assets/custom-fresh.png)

[![License](https://camo.githubusercontent.com/c941e8207896b7fb640ab1060402eaf12024fa397198e8d6c681443e7e2ebb85/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f72616d6164616e2f637573746f6d2d6672657368 "License")](https://camo.githubusercontent.com/c941e8207896b7fb640ab1060402eaf12024fa397198e8d6c681443e7e2ebb85/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f72616d6164616e2f637573746f6d2d6672657368)[![Latest Version on Packagist](https://camo.githubusercontent.com/819049e9d5dd73ba712740855497464fd1bcf193001e9306e8db8145bba10f75/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f72616d6164616e2f637573746f6d2d6672657368 "Latest Version on Packagist")](https://camo.githubusercontent.com/819049e9d5dd73ba712740855497464fd1bcf193001e9306e8db8145bba10f75/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f72616d6164616e2f637573746f6d2d6672657368)[![Total Downloads](https://camo.githubusercontent.com/737a26f12b797de3c6f0cd2b66cd358399931f9aa1b80f7a7086112cb366c67b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f72616d6164616e2f637573746f6d2d6672657368 "Total Downloads")](https://camo.githubusercontent.com/737a26f12b797de3c6f0cd2b66cd358399931f9aa1b80f7a7086112cb366c67b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f72616d6164616e2f637573746f6d2d6672657368)

---

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](https://github.com/mahmoudmohamedramadan/custom-fresh/releases/latest) version, which is the most stable release.

- [Installation](#installation)
- [Usage](#usage)
    - [Refreshing migrations](#refreshing-migrations)
    - [Example](#example)
- [Credits](#credits)
- [Support me](#support-me)

Installation
------------

[](#installation)

Install the package by using [Composer](https://getcomposer.org/):

```
composer require ramadan/custom-fresh
```

Usage
-----

[](#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

[](#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

[](#example)

[![Command Example](https://raw.githubusercontent.com/mahmoudmohamedramadan/custom-fresh/refs/heads/main/assets/command-example.png "Command Example")](https://raw.githubusercontent.com/mahmoudmohamedramadan/custom-fresh/refs/heads/main/assets/command-example.png)

Credits
-------

[](#credits)

- [Mahmoud Ramadan](https://github.com/mahmoudmohamedramadan)
- [Contributors](https://github.com/mahmoudmohamedramadan/custom-fresh/graphs/contributors)

Support me
----------

[](#support-me)

- [PayPal](https://paypal.com/paypalme/mmramadan496)

License
-------

[](#license)

The MIT License (MIT).

###  Health Score

47

—

FairBetter than 94% of packages

Maintenance79

Regular maintenance activity

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~65 days

Recently: every ~135 days

Total

23

Last Release

9d ago

PHP version history (3 changes)v1.0.6PHP ^8.1

v1.0.7PHP ^8.0

v1.1.8PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/6b7e0489f88088d2d0a437fb20d6925d593f8212b58f41daffadfebf5f52ab36?d=identicon)[mmramadan496](/maintainers/mmramadan496)

---

Top Contributors

[![mahmoudmohamedramadan](https://avatars.githubusercontent.com/u/48416569?v=4)](https://github.com/mahmoudmohamedramadan "mahmoudmohamedramadan (124 commits)")

---

Tags

composercustom-freshcustom-migratelaravelmariadbmigrationsmssqlmysqloraclepdopgsqlphppostgresqlqueryobjectsqlsqlitesqlserverlaraveldatabasemysqlsqlitepostgresqlmariadbqueryobjectsqlpdopgsqlsqlservermssqloraclemigraterefreshingcustom-fresh

### Embed Badge

![Health badge](/badges/ramadan-custom-fresh/health.svg)

```
[![Health](https://phpackages.com/badges/ramadan-custom-fresh/health.svg)](https://phpackages.com/packages/ramadan-custom-fresh)
```

###  Alternatives

[doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database schema introspection and management.

9.7k578.4M5.6k](/packages/doctrine-dbal)[ramadan/easy-model

A Laravel package for enjoyably managing database queries.

101.6k](/packages/ramadan-easy-model)[aura/sqlquery

Object-oriented query builders for MySQL, Postgres, SQLite, and SQLServer; can be used with any database connection library.

4572.9M34](/packages/aura-sqlquery)[ezsql/ezsql

Advance database access library. Make interacting with a database ridiculously easy. An universal interchangeable CRUD system.

86946.7k](/packages/ezsql-ezsql)[moharrum/laravel-adminer

Adminer database management tool for your Laravel application.

451.0k](/packages/moharrum-laravel-adminer)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
