PHPackages                             webparking/laravel-db-rebuild - 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. webparking/laravel-db-rebuild

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

webparking/laravel-db-rebuild
=============================

A laravel package that allows for quick database rebuilds with presets.

1.2.0(5y ago)448.8kMITPHPPHP &gt;=7.1.0CI failing

Since Feb 22Pushed 5y ago4 watchersCompare

[ Source](https://github.com/webparking/laravel-db-rebuild)[ Packagist](https://packagist.org/packages/webparking/laravel-db-rebuild)[ RSS](/packages/webparking-laravel-db-rebuild/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (6)Dependencies (9)Versions (8)Used By (0)

 Laravel DB Rebuild
====================

[](#--laravel-db-rebuild)

 [ ![Build Status](https://camo.githubusercontent.com/2b3d54e61407fc6506537b90382a5ffe895282d71bb9ff0f80e7a32ad1b7c098/68747470733a2f2f7472617669732d63692e6f72672f7765627061726b696e672f6c61726176656c2d64622d72656275696c642e7376673f6272616e63683d6d6173746572) ](https://travis-ci.org/webparking/laravel-db-rebuild) [ ![Quality score](https://camo.githubusercontent.com/606c6f8de697d4d8255c41c2549edb09a4397eb1856778bf32600c9263785eb1/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7765627061726b696e672f6c61726176656c2d64622d72656275696c642f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572) ](https://scrutinizer-ci.com/g/webparking/laravel-db-rebuild/?branch=master) [ ![Code coverage](https://camo.githubusercontent.com/80d79e1059c715fa07e61da51b38fcc4589f24d86e6ff36bef53cee9ac8b741b/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7765627061726b696e672f6c61726176656c2d64622d72656275696c642f6261646765732f636f7665726167652e706e673f623d6d6173746572) ](https://scrutinizer-ci.com/g/webparking/laravel-db-rebuild/?branch=master)

This package is meant to provide an easy way of resetting your development database to a certain state.

In addition to `php artisan migrate:fresh` this package also allows you to backup tables (for example sessions and admin\_users, to stay logged in) and run custom seeders or commands based on presets.

This allows you to easily seed different information for local development, your tests and staging.

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

[](#installation)

Add this package to composer.

```
composer require webparking/laravel-db-rebuild

```

Publish the config:

```
php artisan vendor:publish --provider="Webparking\DbRebuild\ServiceProvider"

```

Usage
-----

[](#usage)

The default usage is the following, this will use the default preset. It will also ask you if you're sure you want to reset the db.

```
php artisan db:rebuild

```

You an skipp the question by adding the `--f` flag. You can change the preset by adding `--preset=test`

```
php artisan db:rebuild --preset=test --f

```

Config
------

[](#config)

```
return [
    'presets' => [
        'default' => [
            'database' => 'local_database',
            'backup' => [
                'sessions',
                'admin_users',
            ],
            'commands' => [
                'db:seed',
            ],
            'seeds' => [

            ],
        ],
        'test' => [
            'database' => 'testing_database',
            'backup' => [
                'sessions',
            ],
            'commands' => [
                'db:seed',
            ],
            'seeds' => [
                TestSeeder::class
            ],
        ],
    ],
];
```

Licence and Postcardware
------------------------

[](#licence-and-postcardware)

This software is open source and licensed under the [MIT license](LICENSE.md).

If you use this software in your daily development we would appreciate to receive a postcard of your hometown.

Please send it to: Webparking BV, Cypresbaan 31a, 2908 LT Capelle aan den IJssel, The Netherlands

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 57.1% 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 ~113 days

Recently: every ~140 days

Total

6

Last Release

2119d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5616838?v=4)[Jeroen van Oort](/maintainers/JeroenVanOort)[@JeroenVanOort](https://github.com/JeroenVanOort)

![](https://www.gravatar.com/avatar/5e4c13a922e35b870f1597342981cd03943dfe18ce900859736a54a1cb65bfc0?d=identicon)[crashkonijn](/maintainers/crashkonijn)

---

Top Contributors

[![RVxLab](https://avatars.githubusercontent.com/u/46111684?v=4)](https://github.com/RVxLab "RVxLab (12 commits)")[![JeroenVanOort](https://avatars.githubusercontent.com/u/5616838?v=4)](https://github.com/JeroenVanOort "JeroenVanOort (7 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![francislavoie](https://avatars.githubusercontent.com/u/2111701?v=4)](https://github.com/francislavoie "francislavoie (1 commits)")

---

Tags

phplaraveldatabasedbseedingrebuild

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/webparking-laravel-db-rebuild/health.svg)

```
[![Health](https://phpackages.com/badges/webparking-laravel-db-rebuild/health.svg)](https://phpackages.com/packages/webparking-laravel-db-rebuild)
```

###  Alternatives

[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.4k51.0M7.7k](/packages/larastan-larastan)[laravel/ai

The official AI SDK for Laravel.

1.0k2.1M163](/packages/laravel-ai)[itpathsolutions/dbstan

Database Standardization and Analysis Tool for Laravel

442.1k](/packages/itpathsolutions-dbstan)[spiritix/lada-cache

A Redis based, automated and scalable database caching layer for Laravel

591452.8k2](/packages/spiritix-lada-cache)[glushkovds/phpclickhouse-laravel

Adapter of the most popular library https://github.com/smi2/phpClickHouse to Laravel

2051.4M2](/packages/glushkovds-phpclickhouse-laravel)[calebdw/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

15104.9k4](/packages/calebdw-larastan)

PHPackages © 2026

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