Open noud opened 2 months ago
sail composer require beyondcode/laravel-er-diagram-generator --dev
sail root-shell
apt-get update
apt-get install graphviz
php artisan generate:erd
This worked for me.
On Fri, 2024-05-03 at 07:37 -0700, Romek wrote:
sail composer require beyondcode/laravel-er-diagram-generator --dev
i use Laravel 11, could it be that it is a too new Laravel version 11 to work with beyondcode/laravel-er-diagram-generator?
if i do, i get:
./vendor/bin/sail composer require beyondcode/laravel-er-diagram- generator --dev ./composer.json has been updated Running composer update beyondcode/laravel-er-diagram-generator Loading composer repositories with package information Updating dependencies Your requirements could not be resolved to an installable set of packages.
Problem 1
=2.4,<2.6-dev -> satisfiable by doctrine/common[v2.4.0, ..., v2.5.3].
=2.4,<2.7-dev -> satisfiable by doctrine/common[v2.4.0, ..., v2.6.2].
=2.4,<2.8-dev -> satisfiable by doctrine/common[v2.4.0, ..., v2.7.3].
found doctrine/inflector[v1.0, ..., 1.4.4] but the package is fixed to 2.0.10 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions. You can also try re-running composer require with an explicit version constraint, e.g. "composer require beyondcode/laravel-er-diagram- generator:*" to figure out if any version is installable, or "composer require beyondcode/laravel-er-diagram-generator:^2.1" if you know which you need.
Installation failed, reverting ./composer.json and ./composer.lock to their original content. $
@noud It seems you're having the same issue as people in this issue: #112
Romek,
yes, same issue, Laravel is too new.
Can you make a new distribution with these patches to composer.json
- "php": "^7.1|^8.0",
+ "php": "^7.1|^8.0|^8.1|^8.2",
- "doctrine/dbal": "~2.3|^3.3",
+ "doctrine/dbal": "~2.3|^3.3|^3.8|^4.0",
- "phpunit/phpunit": "^7.0| ^8.0|^9.5.10",
+ "phpunit/phpunit": "^7.0| ^8.0|^9.5.10|^10.5.20|^11.1.3",
and make a new distribution?
thanks, Noud
i want to use your pacakge in a Laravel Sail environment.
How do i install graphviz on Laravel Sail?
thanks, Noud