---
title: "Refresh Your Laravel Database Without Dropping Every Table"
url: https://daily.dev/posts/refresh-your-laravel-database-without-dropping-every-table-uhx62atd3
source_url: https://laravel-news.com/refresh-your-laravel-database-without-dropping-every-table
type: article
source: "Laravel News"
published: 2026-06-10T13:13:56.407Z
updated: 2026-06-10T13:14:15.573Z
tags: ["database", "php", "laravel"]
reading_time: 3
upvotes: 78
comments: 14
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Refresh Your Laravel Database Without Dropping Every Table

**[Laravel News](https://daily.dev/sources/ln)** · 3 min read · 78 upvotes · 14 comments

## Summary

Custom Fresh is a Laravel package that adds a `fresh:custom` Artisan command as an alternative to `migrate:fresh`. Instead of dropping every table, it lets you specify which tables to preserve using comma-separated names or glob patterns (e.g., `subscription_*`). It includes a `--explain` flag for dry-run previews, `--database` for targeting specific connections, a publishable config file for setting persistent defaults, and three lifecycle events (`RefreshingDatabase`, `TablesDropped`, `DatabaseRefreshed`) for hooking into the refresh process. Requires PHP 8.2+ and supports Laravel 10–13.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://laravel-news.com/refresh-your-laravel-database-without-dropping-every-table>

## Community discussion

Top comments from developers on daily.dev.

**@legacy8** · 3 upvotes

> Should come in handy someday.

**@rgodiyal** · 2 upvotes

> This is what i am looking for :)

**@mohamedsabil83** · 1 upvotes

> It's really a useful package. Needed in two of my projects.

**@tetsuman** · 0 upvotes

> This is what we are looking for Thank you

**@andruhudz** · 0 upvotes

> Em.. what about creating a separate migrations scripts ?

## Similar posts on daily.dev

- [Laravel RefreshDatabase vs DatabaseTransactions: When to Use Each](https://daily.dev/posts/laravel-refreshdatabase-vs-databasetransactions-when-to-use-each-q8ttdwuwe) · CodeCraft Diary · 0 upvotes · 0 comments
- [Laravel Schema Sentinel: Detect and Fix Database Schema Drift](https://daily.dev/posts/laravel-schema-sentinel-detect-and-fix-database-schema-drift-hmb4acjqr) · Laravel News · 71 upvotes · 5 comments

---

Tags: [#database](https://daily.dev/tags/database), [#php](https://daily.dev/tags/php), [#laravel](https://daily.dev/tags/laravel)

[View this post on daily.dev](https://daily.dev/posts/refresh-your-laravel-database-without-dropping-every-table-uhx62atd3)
