PHPackages                             sagar-s-bhedodkar/auto-reset - 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. sagar-s-bhedodkar/auto-reset

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

sagar-s-bhedodkar/auto-reset
============================

Automate `php artisan migrate:fresh` + seeding + cleanup for local Laravel development environments.

v1.0.1(7mo ago)04MITPHPPHP &gt;=8.1

Since Oct 12Pushed 7mo agoCompare

[ Source](https://github.com/sagar-s-bhedodkar/laravel-auto-reset)[ Packagist](https://packagist.org/packages/sagar-s-bhedodkar/auto-reset)[ Docs](https://github.com/sagar-s-bhedodkar/laravel-auto-reset)[ RSS](/packages/sagar-s-bhedodkar-auto-reset/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (3)Versions (2)Used By (0)

Laravel AutoReset
=================

[](#laravel-autoreset)

[![License: MIT](https://camo.githubusercontent.com/784362b26e4b3546254f1893e778ba64616e362bd6ac791991d2c9e880a3a64e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e2e737667)](https://opensource.org/licenses/MIT)
[![Latest Version](https://camo.githubusercontent.com/2285fe9560500c52210b1d736e2151dfee16f23faf1d4ea1d485f32126f2b3a2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f73616761722d732d626865646f646b61722f6c61726176656c2d6175746f2d7265736574)](https://github.com/sagar-s-bhedodkar/laravel-auto-reset/releases)

**Automate `php artisan migrate:fresh` + seeding + cleanup for local Laravel development environments.**

---

Table of Contents
-----------------

[](#table-of-contents)

- [Introduction](#introduction)
- [Features](#features)
- [Installation](#installation)
- [Configuration](#configuration)
- [Usage](#usage)
- [Contributing](#contributing)
- [License](#license)
- [Support](#support)

---

Introduction
------------

[](#introduction)

Laravel AutoReset is a simple yet powerful package designed to **automate repetitive database reset tasks** during local development.

Instead of running multiple commands (`migrate:fresh`, `db:seed`, `cache:clear`, etc.), you can now **do it all with a single command**:

```
php artisan dev:reset
```

This improves your **development workflow**, **reduces human errors**, and saves time.

---

Features
--------

[](#features)

- Reset the database and run migrations automatically.
- Seed database optionally with default or specific seeders.
- Clear cache, configuration, and views automatically.
- Optional cleanup of storage directories.
- Environment safety: works only in local or testing environments.
- Works with Laravel 9, 10, 11, and 12.

---

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

[](#installation)

1. Navigate to your Laravel project:

```
cd your-laravel-project
```

2. Require the package:

- **From GitHub (if not on Packagist yet):**

```
composer require sagar-s-bhedodkar/auto-reset:*@dev
```

- **From Packagist (once published):**

```
composer require sagar-s-bhedodkar/auto-reset
```

3. Publish the configuration (optional):

```
php artisan vendor:publish --provider="Laravel\AutoReset\Providers\AutoResetServiceProvider" --tag=config
```

---

Configuration
-------------

[](#configuration)

After publishing, edit `config/auto-reset.php` to:

- Set default seeders.
- Configure storage directories to clean.
- Enable/disable post-reset commands.

Example:

```
return [
    'default_seeders' => [
        \Database\Seeders\UserSeeder::class,
        \Database\Seeders\ProductSeeder::class
    ],
    'storage_cleanup' => true,
    'cleanup_paths' => ['storage/app/public'],
];
```

---

Usage
-----

[](#usage)

Run the main command:

```
php artisan dev:reset
```

Optional arguments:

- Run specific seeders:

```
php artisan dev:reset --seed=UserSeeder,ProductSeeder
```

- Clean storage directories:

```
php artisan dev:reset --storage
```

- The command **never runs in production** for safety.

---

Contributing
------------

[](#contributing)

1. Fork the repository.
2. Create a new branch:

```
git checkout -b feature/my-feature
```

3. Make your changes, write tests, and commit:

```
git commit -m "Add feature XYZ"
```

4. Push to your fork:

```
git push origin feature/my-feature
```

5. Open a Pull Request.

**All contributions are welcome!**

---

License
-------

[](#license)

This package is licensed under **MIT License** – see the [LICENSE](LICENSE) file for details.

---

Support
-------

[](#support)

- GitHub Issues:
- Source Code:

---

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance65

Regular maintenance activity

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

213d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2f14a63a25120de3ec7ce2eff77be8ba80345f1de81a84ceaa719ae9d1534687?d=identicon)[sbsagar](/maintainers/sbsagar)

---

Top Contributors

[![sbsaga](https://avatars.githubusercontent.com/u/110087468?v=4)](https://github.com/sbsaga "sbsaga (3 commits)")

---

Tags

laraveldevmigrationdatabaseseederreset

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sagar-s-bhedodkar-auto-reset/health.svg)

```
[![Health](https://phpackages.com/badges/sagar-s-bhedodkar-auto-reset/health.svg)](https://phpackages.com/packages/sagar-s-bhedodkar-auto-reset)
```

###  Alternatives

[cybercog/laravel-clickhouse

ClickHouse migrations for Laravel

163166.8k](/packages/cybercog-laravel-clickhouse)[awssat/laravel-sync-migration

Laravel tool helps to sync migrations without refreshing the database

10923.2k](/packages/awssat-laravel-sync-migration)[dragon-code/laravel-data-dumper

Adding data from certain tables when executing the `php artisan schema:dump` console command

3418.6k](/packages/dragon-code-laravel-data-dumper)[codengine/laravel-custom-migrations

Custom Migrations for Laravel

131.3k](/packages/codengine-laravel-custom-migrations)

PHPackages © 2026

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