agontuk / schema-builder
Schema designer & migration generator for laravel & lumen
Installs: 1 587
Dependents: 1
Suggesters: 0
Security: 0
Stars: 54
Watchers: 8
Forks: 21
Open Issues: 3
Requires
- ext-zip: *
- illuminate/filesystem: ^5.1|^6|^7|^8
- illuminate/http: ^5.1|^6|^7|^8
- illuminate/support: ^5.1|^6|^7|^8
- league/flysystem: ^1.0
- league/flysystem-ziparchive: ^1.0
Requires (Dev)
- phpmd/phpmd: ^2.6
README
Database designer & migration generator package for laravel & lumen.
Checkout agontuk.github.io/schema-designer to see how it works.
Installation
composer require --dev agontuk/schema-builder
For Laravel(>=5.5) this package utilises package auto-discovery. There is no need to add the service providers manually. You may notice the following message post-autoload.
Discovered Package: agontuk/schema-builder
or for Laravel(<5.5), register SchemaServiceProvider on the providers
array in config/app.php
,
\Agontuk\Schema\SchemaServiceProvider::class
or for Lumen in bootstrap/app.php
$app->register(\Agontuk\Schema\SchemaServiceProvider::class);
Finally enable required routes via .env
,
SCHEMA_ROUTES_ENABLED=true
NOTE: APP_ENV should be
local
to use this package.
Usage
Navigate to yoursite.com/schema
and build your database schema, then use the export button to generate migration files.
NOTE: Not all features of migration are supported yet. Feel free to submit any issues or pull requests.