bigbyte-pl/laravel-dbml-tools

dev-master 2020-08-29 00:18 UTC

This package is auto-updated.

Last update: 2024-10-29 05:53:51 UTC


README

DBML tools for Laravel framework

Installation

Require this package with composer using the following command:

composer require --dev bigbyte-pl/laravel-dbml-tools

This package makes use of Laravels package auto-discovery mechanism, which means if you don't install dev dependencies in production, it also won't be loaded.

If for some reason you want manually control this:

  • add the package to the extra.laravel.dont-discover key in composer.json, e.g.
    "extra": {
      "laravel": {
        "dont-discover": [
          "bigbyte-pl/laravel-dbml-tools",
        ]
      }
    }
  • Add the following class to the providers array in config/app.php:
    BigbytePl\LaravelDbmlTools\DbmlToolsServiceProvider::class,
    If you want to manually load it only in non-production environments, instead you can add this to your AppServiceProvider with the register() method:
    public function register()
    {
        if ($this->app->environment() !== 'production') {
            $this->app->register(\BigbytePl\LaravelDbmlTools\DbmlToolsServiceProvider::class);
        }
        // ...
    }

Note: Avoid caching the configuration in your development environment, it may cause issues after installing this package; respectively clear the cache beforehand via php artisan cache:clear if you encounter problems when running the commands

Usage