a2design/laravel-list-db
允许列出数据库结构(包含类型)
v1.2.1
2016-05-16 05:14 UTC
Requires
- doctrine/dbal: ^2.5
This package is not auto-updated.
Last update: 2024-09-14 18:47:43 UTC
README
允许列出数据库结构(包含类型)
安装
- 运行Composer install
composer require a2design/laravel-list-db
- 将服务提供者添加到您的应用程序配置中
'providers' => [ ... A2Design\LaravelListDb\ListDbServiceProvider::class, ], ...
如果您想查看表列的列表,请使用
php artisan table:columns tableName
对于模型
php artidan model:columns modelName
格式化
%po
- 平台选项%nn
- 非空%dt
- 默认值%ai
- 自动递增%c
- 列名%t
- 列类型%u
- 无符号%l
- 列长度%p
- 列精度%s
- 列刻度%f
- 列是固定的