ogestor / schema-builder
laravel & lumen 的模式设计器与迁移生成器
1.2.0
2017-12-13 14:17 UTC
Requires
- ext-zip: *
- illuminate/filesystem: 5.1.*|5.2.*|5.3.*|5.4.*|5.5.*
- illuminate/http: 5.1.*|5.2.*|5.3.*|5.4.*|5.5.*
- illuminate/support: 5.1.*|5.2.*|5.3.*|5.4.*|5.5.*
- league/flysystem: ^1.0
- league/flysystem-ziparchive: ^1.0
Requires (Dev)
- phpmd/phpmd: ^2.6
This package is auto-updated.
Last update: 2024-09-18 09:46:28 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
并构建数据库模式,然后使用导出按钮生成迁移文件。
注意:尚不支持迁移的所有功能。请随意提交任何问题或拉取请求。