Download the PHP package sagar-s-bhedodkar/auto-reset without Composer
On this page you can find all versions of the php package sagar-s-bhedodkar/auto-reset. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sagar-s-bhedodkar/auto-reset
More information about sagar-s-bhedodkar/auto-reset
Files in sagar-s-bhedodkar/auto-reset
Package auto-reset
Short Description Automate `php artisan migrate:fresh` + seeding + cleanup for local Laravel development environments.
License MIT
Homepage https://github.com/sagar-s-bhedodkar/laravel-auto-reset
Informations about the package auto-reset
Laravel AutoReset
Automate php artisan migrate:fresh + seeding + cleanup for local Laravel development environments.
Table of Contents
- Introduction
- Features
- Installation
- Configuration
- Usage
- Contributing
- License
- Support
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:
This improves your development workflow, reduces human errors, and saves time.
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
-
Navigate to your Laravel project:
- Require the package:
-
From GitHub (if not on Packagist yet):
- From Packagist (once published):
- Publish the configuration (optional):
Configuration
After publishing, edit config/auto-reset.php to:
- Set default seeders.
- Configure storage directories to clean.
- Enable/disable post-reset commands.
Example:
Usage
Run the main command:
Optional arguments:
-
Run specific seeders:
-
Clean storage directories:
- The command never runs in production for safety.
Contributing
- Fork the repository.
-
Create a new branch:
-
Make your changes, write tests, and commit:
-
Push to your fork:
- Open a Pull Request.
All contributions are welcome!
License
This package is licensed under MIT License – see the LICENSE file for details.
Support
- GitHub Issues: https://github.com/sagar-s-bhedodkar/laravel-auto-reset/issues
- Source Code: https://github.com/sagar-s-bhedodkar/laravel-auto-reset