bajki / schema-builder
用于laravel与lumen的Schema设计器与迁移生成器
1.0.2
2017-04-07 15:11 UTC
Requires
- ext-zip: *
- illuminate/filesystem: 5.1.*|5.2.*|5.3.*|5.4.*
- illuminate/http: 5.1.*|5.2.*|5.3.*|5.4.*
- illuminate/support: 5.1.*|5.2.*|5.3.*|5.4.*
- league/flysystem: ^1.0
- league/flysystem-ziparchive: ^1.0
Requires (Dev)
- phpmd/phpmd: ^2.6
This package is not auto-updated.
Last update: 2024-09-22 15:32:26 UTC
README
laravel与lumen的数据库设计器与迁移生成器包。
访问agontuk.github.io/schema-designer查看其工作原理。
安装
composer require --dev agontuk/schema-builder
然后注册SchemaServiceProvider,对于laravel在config/app.php的providers数组中注册,
\Agontuk\Schema\SchemaServiceProvider::class
或者对于lumen在bootstrap/app.php
$app->register(\Agontuk\Schema\SchemaServiceProvider::class);
最后通过.env启用所需的路由,
SCHEMA_ROUTES_ENABLED=true
注意:要使用此包,APP_ENV应该设置为
local。
用法
导航到yoursite.com/schema并构建您的数据库模式,然后使用导出按钮生成迁移文件。
注意:目前尚不支持所有迁移功能。请随时提交任何问题或pull请求。