bigbyte-pl / laravel-dbml-tools
DMBL tools for Laravel
dev-master
2020-08-29 00:18 UTC
Requires
- php: >=7.0
- composer/composer: ^1.6 || ^2.0@dev
- doctrine/dbal: ~2.3
- illuminate/console: ^5.5 || ^6 || ^7
- illuminate/filesystem: ^5.5 || ^6 || ^7
- illuminate/support: ^5.5 || ^6 || ^7
- mhd-jalilvand/php-dbml-parser: *
Requires (Dev)
- illuminate/config: ^5.5 || ^6 || ^7
- illuminate/view: ^5.5 || ^6 || ^7
- mockery/mockery: ^1.3
- spatie/phpunit-snapshot-assertions: ^1.4 || ^2.2 || ^3
- squizlabs/php_codesniffer: ^3.5
- vimeo/psalm: ^3.12
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 incomposer.json
, e.g."extra": { "laravel": { "dont-discover": [ "bigbyte-pl/laravel-dbml-tools", ] } }
- Add the following class to the
providers
array inconfig/app.php
:BigbytePl\LaravelDbmlTools\DbmlToolsServiceProvider::class,
If you want to manually load it only in non-production environments, instead you can add this to yourAppServiceProvider
with theregister()
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