Skip to content

Commit

Permalink
Merge pull request #102 from laravel-shift/l9-compatibility
Browse files Browse the repository at this point in the history
- Laravel 9 compatibility
- Laravel 10 compatibility
- Use `DIRECTORY_SEPARATOR` in config
  • Loading branch information
mechelon authored Feb 10, 2023
2 parents de3b7d5 + 0d569d4 commit 548a1f3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 6 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -40,7 +40,6 @@
"scripts": {
"test": "vendor/bin/phpunit",
"test-coverage": "vendor/bin/phpunit --coverage-html coverage"

},
"config": {
"sort-packages": true
Expand Down
2 changes: 1 addition & 1 deletion config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
],

/*
Expand Down

0 comments on commit 548a1f3

Please sign in to comment.