Looking to hire Laravel developers? Try LaraJobs

laravel-dbml-tools maintained by bigbyte-pl

Description
DMBL tools for Laravel
Author
Last update
2020/08/29 02:18 (dev-master)
License
Downloads
3
Tags

Comments
comments powered by Disqus

laravel-dmbl-tools

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