pkeidel/dbtolaravel

Reads a database and creates the migrations, models, controllers and blades for the tables

Installs: 118

Dependents: 0

Suggesters: 0

Stars: 1

Watchers: 1

Forks: 1

Open Issues: 1

Language:HTML

v1.0.3 2018-07-04 18:21 UTC

README

687474703a2f2f666f7274686562616467652e636f6d2f696d616765732f6261646765732f6d616b65732d70656f706c652d736d696c652e737667

Build Status

Beerpay

FOSSA Status

Install

composer require pkeidel/dbtolaravel

DB2Laravel is just active if APP_DEBUG=true or DBTOLARAVEL_ENABLED=true

< Laravel 5.5

As always, add it to your app/config.php:

'providers' => [
    // ....
    PKeidel\DBtoLaravel\Providers\DBtoLaravelServiceProvider::class,
]

>= Laravel 5.5

// get you a coffee, you're done

Settings

.env file

DBtoLaravel is enabled if APP_DEBUG=true or DBTOLARAVEL_ENABLED=true

Filter Tables

Register a filter in your AppServiceProvider.php:

DBtoLaravelHelper::$FILTER = function($table) {
    return strpos($table, 'eyewitness_io_') !== 0 && strpos($table, 'oauth_') !== 0;
};

License

FOSSA Status