qsnh/laravel-cadillac

A database tool.

Downloads

650

Stars

61

Version

v1.0.0

Laravel-Cadillac

This package develop on laravel, please confirm use it on laravel project.In the daily development, some structures of the data table may have certain changes, such as: add one field or remove one field. If the development cycle of the project is long, we may forget about the structure of some data tables so that we need to look at the Migration file or enter Mysql to see the structure of the data table, but I think this is a waste of time! Therefore, I developed this package. When we need to look at the structure of data tables that we do not remember very clearly, we only need one command!

中文文档

Compatible DB Engines

  • MySQL

Installation

composer require qsnh/laravel-cadillac dev-master --dev

It's recommended use it in develop environment.

Command

php artisan cadillac [tableName] --export --html

Show all tables in current database

php artisan cadillac

php artisan cadillac

Show a table structure

php artisan cadillac tableName

php artisan cadillac tableName

Import all the table structures of the current database into the MARKDOWN file

php artisan cadillac --export

php artisan cadillac --export

Import all the table structures of the current database into the HTML file

php artisan cadillac --export --html

php artisan cadillac --export --html

Print one table all fields

php artisan cadillac --f=users

output:

id,name,email,password,remember_token,created_at,updated_at

and if u add --q params,it will print:

'id','name','email','password','remember_token','created_at','updated_at'

Author

Qsnh

License

MIT