Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/agontuk/schema-builder
Laravel/Lumen schema builder & migration generator
https://github.com/agontuk/schema-builder
database laravel lumen migration schema
Last synced: 25 days ago
JSON representation
Laravel/Lumen schema builder & migration generator
- Host: GitHub
- URL: https://github.com/agontuk/schema-builder
- Owner: Agontuk
- License: mit
- Created: 2017-01-22T13:43:29.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2021-03-21T18:54:55.000Z (over 3 years ago)
- Last Synced: 2024-08-17T16:07:24.200Z (3 months ago)
- Topics: database, laravel, lumen, migration, schema
- Language: PHP
- Homepage: https://packagist.org/packages/agontuk/schema-builder
- Size: 300 KB
- Stars: 54
- Watchers: 8
- Forks: 21
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Laravel/Lumen schema builder
Database designer & migration generator package for laravel & lumen.Checkout **[agontuk.github.io/schema-designer](https://agontuk.github.io/schema-designer)** to see how it works.
## Installation
```php
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.
```bash
Discovered Package: agontuk/schema-builder
```or for Laravel(<5.5), register SchemaServiceProvider on the `providers` array in `config/app.php`,
```php
\Agontuk\Schema\SchemaServiceProvider::class
```
or for Lumen in `bootstrap/app.php`
```php
$app->register(\Agontuk\Schema\SchemaServiceProvider::class);
```Finally enable required routes via `.env`,
```php
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](https://github.com/Agontuk/schema-builder/blob/master/LICENSE)