blubird / db-truncate
Your can truncate all your tables in your database
Installs: 3 046
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 1
Open Issues: 0
pkg:composer/blubird/db-truncate
Requires
- doctrine/dbal: ^3.1
README
This package is a simple way to truncate your database tables. Sometimes you need to truncate your database tables for testing purpose. This package will help you to truncate your database tables without running fresh migration. cause, re-running migration will take a lot of time. So, you might need to truncate your database tables.
You can also ignore some tables while truncating all the others. for example migrations table.
Installation:
composer require blubird/db-truncate
Command
php artisan db:truncatephp artisan db:truncate --except=migrations,usersphp artisan db:truncate --only=users,roles,permissions