KCPT19 / laravel-mysqltools by kcpt

KCPT's easy database dump/import commands for MySQL.
28
2
5
Package Data
Maintainer Username: kcpt
Maintainer Contact: digital@kcpt.org (Steven Kohlmeyer)
Package Create Date: 2017-05-01
Package Last Update: 2017-07-12
Home Page: https://kcpt19.github.io/laravel-mysqltools/
Language: PHP
License: MIT
Last Refreshed: 2024-04-15 15:06:31
Package Statistics
Total Downloads: 28
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 2
Total Watchers: 5
Total Forks: 0
Total Open Issues: 0

KCPT Laravel MySQL Tools

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 add KCPT\MySQLToolsServiceProvider::class to the 'providers' array.
  • run artisan commands

Usage

db:clear

Clear Database

This command deletes all tables in the current database.

db:dump

Dump the Database

This command will create a .sql dump file in the current project's folder named: db-[environment]-[date].sql

db:import

Database Import Autocomplete

This command imports the database from a .sql file. This command has autocomplete.

Database Imported