mya-zaki / laravel-schemaspy-meta
生成XML以修改输入,这将影响SchemaSpy的输出。
v3.0.0
2021-02-02 05:03 UTC
Requires
- php: ^8.0
- illuminate/console: ^8.12
- illuminate/database: ^8.12
- illuminate/support: ^8.12
Requires (Dev)
- phpunit/phpunit: ^9.5
- squizlabs/php_codesniffer: ^3.5
This package is auto-updated.
Last update: 2024-09-29 05:09:27 UTC
README
需求
安装 php_ast
https://github.com/nikic/php-ast#installation
安装
composer require --dev mya-zaki/laravel-schemaspy-meta
生成XML
php artisan schemaspy-meta:generate
参数
namespace
: string
| App
Eloquent模型的命名空间。例如:App\\Models, 'App\Models'
选项
--xmlFile
: string
| schemaspy-meta.xml 输出schema xml的路径。
--excludeClass
: array
(可选) 忽略指定的类。
e.g.
--excludeClass Foo --excludeClass Bar
配置
运行命令
php artisan vendor:publish
选择提供者: Provider: MyaZaki\LaravelSchemaspyMeta\SchemaspyMetaServiceProvider
然后,将 schemaspymeta.php 文件复制到 _app/config。
排除继承指定超类的子类。