Skip to content

A Laravel 5 Package that adds artisan commands for importing, exporting and clearing a MySQL or MariaDB database.

Notifications You must be signed in to change notification settings

KCPT19/laravel-mysqltools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

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

About

A Laravel 5 Package that adds artisan commands for importing, exporting and clearing a MySQL or MariaDB database.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages