ogestor/schema-builder

Schema designer & migration generator for laravel & lumen

1.2.0 2017-12-13 14:17 UTC

This package is auto-updated.

Last update: 2024-04-18 08:46:38 UTC


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

Then register SchemaServiceProvider, for laravel on 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.

License

MIT