kcpt / mysqltools
KCPT's easy database dump/import commands for MySQL.
0.6
2017-07-12 07:23 UTC
Requires
- php: >=5.6.4
- illuminate/contracts: >=5.3.0
- illuminate/support: >=5.3.0
- symfony/console: >=3.1.10
This package is not auto-updated.
Last update: 2024-11-24 03:18:05 UTC
README
This is a module for Laravel 5. This adds 3 commands to artisan:
- db:clear
- db:dump
- db:import
Installation
composer require kcpt/mysqltools
- Edit
config/app.php
and addKCPT\MySQLToolsServiceProvider::class
to the 'providers' array. - run artisan commands
Usage
db:clear
This command deletes all tables in the current database.
db:dump
This command will create a .sql dump file in the current project's folder named: db-[environment]-[date].sql
db:import
This command imports the database from a .sql file. This command has autocomplete.