LaravelPackages.net
Acme Inc.
Toggle sidebar
qsnh/laravel-cadillac

A database tool.

720
60
v1.0.0
About qsnh/laravel-cadillac

qsnh/laravel-cadillac is a Laravel package for a database tool.. It currently has 60 GitHub stars and 720 downloads on Packagist (latest version v1.0.0). Install it with composer require qsnh/laravel-cadillac. Discover more Laravel packages by qsnh or browse all Laravel packages to compare alternatives.

Last updated

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

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

Comments