This is a module for Laravel 5. This adds 3 commands to artisan:
- db:clear
- db:dump
- db:import
composer require kcpt/mysqltools
- Edit
config/app.php
and addKCPT\MySQLToolsServiceProvider::class
to the 'providers' array. - run artisan commands
This command deletes all tables in the current database.
This command will create a .sql dump file in the current project's folder named: db-[environment]-[date].sql
This command imports the database from a .sql file. This command has autocomplete.