From 147da1de92448f08793c9b1aca506944a3c41283 Mon Sep 17 00:00:00 2001 From: Shift Date: Sat, 5 Feb 2022 16:46:57 +0000 Subject: [PATCH 1/2] Bump dependencies for Laravel 9 --- composer.json | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/composer.json b/composer.json index f43830d..84eb0e9 100644 --- a/composer.json +++ b/composer.json @@ -16,16 +16,16 @@ } ], "require": { - "php": "^7.1", - "doctrine/dbal": "~2.3", + "php": "^7.1|^8.0", + "doctrine/dbal": "~2.3|^3.3", "phpdocumentor/graphviz": "^1.0", - "nikic/php-parser":"^2.0|^3.0|^4.0" + "nikic/php-parser": "^2.0|^3.0|^4.0" }, "require-dev": { "larapack/dd": "^1.0", - "orchestra/testbench": "~3.5|~3.6|~3.7|~3.8|^4.0", - "phpunit/phpunit": "^7.0| ^8.0", - "spatie/phpunit-snapshot-assertions": "^1.3" + "orchestra/testbench": "~3.5|~3.6|~3.7|~3.8|^4.0|^7.0", + "phpunit/phpunit": "^7.0| ^8.0|^9.5.10", + "spatie/phpunit-snapshot-assertions": "^1.3|^4.2" }, "autoload": { "psr-4": { @@ -40,7 +40,6 @@ "scripts": { "test": "vendor/bin/phpunit", "test-coverage": "vendor/bin/phpunit --coverage-html coverage" - }, "config": { "sort-packages": true From 0d569d4d7eec94d7d910520464e6c9f5bd46c3a2 Mon Sep 17 00:00:00 2001 From: Diana Scharf Date: Fri, 10 Feb 2023 09:57:01 +0100 Subject: [PATCH 2/2] updated readme & use directory separator for OS compatibility --- README.md | 2 +- config/config.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5884224..0610f0c 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ $app->register(BeyondCode\ErdGenerator\ErdGeneratorServiceProvider::class); ## Usage -By default, the package will automatically detect all models in your `app` directory that extend the Eloquent Model class. If you would like you explicitly define where your models are located, you can publish the configuration file using the following command. +By default, the package will automatically detect all models in your `app/Models` directory that extend the Eloquent Model class. If you would like you explicitly define where your models are located, you can publish the configuration file using the following command. ```bash php artisan vendor:publish --provider=BeyondCode\\ErdGenerator\\ErdGeneratorServiceProvider diff --git a/config/config.php b/config/config.php index 2cf9c8a..0b1579e 100644 --- a/config/config.php +++ b/config/config.php @@ -7,7 +7,7 @@ * By default, the `app` directory will be scanned recursively for models. */ 'directories' => [ - base_path('app\Models'), + base_path('app' . DIRECTORY_SEPARATOR . 'Models'), ], /*