Reads a database and creates the migrations, models, controllers and blades for the tables
With this package it is possible to auto-generate a lot of needed files if you already have an existing database schema. Files that can be generated:
composer require pkeidel/dbtolaravel
DB2Laravel is only active if APP_DEBUG=true
or DBTOLARAVEL_ENABLED=true
Register a filter in your AppServiceProvider.php
:
DBtoLaravelHelper::$FILTER = function($table) {
return strpos($table, 'eyewitness_io_') !== 0 && strpos($table, 'oauth_') !== 0;
};
DBtoLaravelHelper::$MAPPINGS = ['enum' => 'string', 'bytea' => 'binary', 'macaddr' => 'string'];