PKeidel / dbtolaravel by PKeidel

Reads a database and creates the migrations, models, controllers and blades for the tables
298
0
2
Package Data
Maintainer Username: PKeidel
Maintainer Contact: PKeidel@sags-per-mail.de (PKeidel)
Package Create Date: 2017-09-07
Package Last Update: 2024-04-03
Home Page:
Language: Blade
License: MIT
Last Refreshed: 2024-05-03 15:06:13
Package Statistics
Total Downloads: 298
Monthly Downloads: 23
Daily Downloads: 1
Total Stars: 0
Total Watchers: 2
Total Forks: 1
Total Open Issues: 0

README

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