Skip to content

Commit 548a1f3

Browse files
authored
Merge pull request #102 from laravel-shift/l9-compatibility
- Laravel 9 compatibility - Laravel 10 compatibility - Use `DIRECTORY_SEPARATOR` in config
2 parents de3b7d5 + 0d569d4 commit 548a1f3

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ $app->register(BeyondCode\ErdGenerator\ErdGeneratorServiceProvider::class);
5252

5353
## Usage
5454

55-
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.
55+
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.
5656

5757
```bash
5858
php artisan vendor:publish --provider=BeyondCode\\ErdGenerator\\ErdGeneratorServiceProvider

composer.json

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,16 @@
1616
}
1717
],
1818
"require": {
19-
"php": "^7.1",
20-
"doctrine/dbal": "~2.3",
19+
"php": "^7.1|^8.0",
20+
"doctrine/dbal": "~2.3|^3.3",
2121
"phpdocumentor/graphviz": "^1.0",
22-
"nikic/php-parser":"^2.0|^3.0|^4.0"
22+
"nikic/php-parser": "^2.0|^3.0|^4.0"
2323
},
2424
"require-dev": {
2525
"larapack/dd": "^1.0",
26-
"orchestra/testbench": "~3.5|~3.6|~3.7|~3.8|^4.0",
27-
"phpunit/phpunit": "^7.0| ^8.0",
28-
"spatie/phpunit-snapshot-assertions": "^1.3"
26+
"orchestra/testbench": "~3.5|~3.6|~3.7|~3.8|^4.0|^7.0",
27+
"phpunit/phpunit": "^7.0| ^8.0|^9.5.10",
28+
"spatie/phpunit-snapshot-assertions": "^1.3|^4.2"
2929
},
3030
"autoload": {
3131
"psr-4": {
@@ -40,7 +40,6 @@
4040
"scripts": {
4141
"test": "vendor/bin/phpunit",
4242
"test-coverage": "vendor/bin/phpunit --coverage-html coverage"
43-
4443
},
4544
"config": {
4645
"sort-packages": true

config/config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* By default, the `app` directory will be scanned recursively for models.
88
*/
99
'directories' => [
10-
base_path('app\Models'),
10+
base_path('app' . DIRECTORY_SEPARATOR . 'Models'),
1111
],
1212

1313
/*

0 commit comments

Comments
 (0)