PKeidel / dbtolaravel by PKeidel

Reads a database and creates the migrations, models, controllers and blades for the tables
418
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-08-28
Home Page:
Language: Blade
License: MIT
Last Refreshed: 2024-11-15 15:03:12
Package Statistics
Total Downloads: 418
Monthly Downloads: 26
Daily Downloads: 2
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