suavy/database-reset-command-for-laravel

1.2.0 2020-11-06 14:30 UTC

This package is auto-updated.

Last update: 2024-04-06 22:51:44 UTC


README

Latest Version on Packagist Build Status Quality Score Total Downloads StyleCI

This package offer you a command that help you reset your database in few steps : dropping, creating, importing (optional), migrating, seeding (optional).

Installation

You can install the package via composer:

composer require suavy/database-reset-command-for-laravel

Usage

php artisan db:reset

Options

--force

Launch with no warning and no production protection

php artisan db:reset --force

--import

Import db.sql file located at root of your project (be sure to not commit this file, add it to your .gitignore)

php artisan db:reset --import

--seed

Launch seed at the end

php artisan db:reset --seed

Contributing

Contributions are welcome and will be fully credited.

Security

If you discover any security related issues, please email us instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

Laravel Package Boilerplate

This package was generated using the Laravel Package Boilerplate.