composer global require 3xter/oino
Install in your laravel project laracasts/generators
composer require --dev laracasts/generators
Create in your project oino.yaml file.
settings:
shell-driver: 'laravel'
db-execute: 'schema'
db:
driver: 'pdo_mysql'
host: 'localhost'
dbname: 'homestead'
port: 3306
user: 'homestead'
password: 'secret'
args:
file: ''
tab: ''
project: ''
dir: ''
filename: ''
db - schema parser use dbal. More details about settings: Doctrine DBAL Configuration
php ~/.composer/vendor/bin/oino -c import -o /path/to/settings/oino.yaml --file="path/to/exported/file.json" --tab="tab name" --project="/path/to/project"
php ~/.composer/vendor/bin/oino -c export -o /path/to/settings/oino.yaml --dir="path/to/export/directory"