Laravel-apidoc-generator: Add support for Laravel 7

Created on 27 Mar 2020  路  7Comments  路  Source: mpociot/laravel-apidoc-generator

Currently the package doesn't seem to be compatible with Laravel 7 out of the box.

https://ibb.co/sm16hKZ

Using version ^4.4 for mpociot/laravel-apidoc-generator
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - mpociot/laravel-apidoc-generator v4.x-dev requires nunomaduro/collision ^3.0 -> satisfiable by nunomaduro/collision[v3.0.0, v3.0.1] but these conflict with your requirements or minimum-stability.
    - Conclusion: don't install mpociot/laravel-apidoc-generator 4.4.3
    - Conclusion: don't install mpociot/laravel-apidoc-generator 4.4.2
    - Conclusion: don't install mpociot/laravel-apidoc-generator 4.4.1
    - Conclusion: remove ramsey/uuid 4.0.0
    - Installation request for mpociot/laravel-apidoc-generator ^4.4 -> satisfiable by mpociot/laravel-apidoc-generator[4.4.0, 4.4.1, 4.4.2, 4.4.3, v4.x-dev].
    - Conclusion: don't install ramsey/uuid 4.0.0
    - mpociot/laravel-apidoc-generator 4.4.0 requires ramsey/uuid ^3.8 -> satisfiable by ramsey/uuid[3.8.0, 3.9.0, 3.9.1, 3.9.2, 3.9.3, 3.x-dev].
    - Can only install one of: ramsey/uuid[3.8.0, 4.0.0].
    - Can only install one of: ramsey/uuid[3.9.0, 4.0.0].
    - Can only install one of: ramsey/uuid[3.9.1, 4.0.0].
    - Can only install one of: ramsey/uuid[3.9.2, 4.0.0].
    - Can only install one of: ramsey/uuid[3.9.3, 4.0.0].
    - Can only install one of: ramsey/uuid[3.x-dev, 4.0.0].
    - Installation request for ramsey/uuid (locked at 4.0.0) -> satisfiable by ramsey/uuid[4.0.0].

Most helpful comment

I don't know but i got the problem solved by removing composer.lock and vendor folder then i added this line

"mpociot/laravel-apidoc-generator": "dev-master"

in composer.json

then i ran composer install

And it's Working Fine now

All 7 comments

Laravel 7 support has been added a long time ago. You're going to need to investigate why your installation is failing. Probably composer why. Check out the other issues: #711, #705, #703

This happens on a new fresh install of Laravel, so it's not a problem with any other added packages.

I don't know but i got the problem solved by removing composer.lock and vendor folder then i added this line

"mpociot/laravel-apidoc-generator": "dev-master"

in composer.json

then i ran composer install

And it's Working Fine now

I faced the exact same issue when I tried to install the package in my Laravel 7 project.

It looks like the problem is from trying to support multiple versions of Laravel/Lumen/Dingo and juggling the version constraints that come with that. I've been able to reproduce and fix this. I'll tag a release once I can get the tests to pass. (They're passing, but the Dingo test takes forever.)

Tagged 4.5.0.

This still does not work for Laravel v.7.3 and mpociot/laravel-apidoc-generator v.4.5

On clean Laravel installation I run:

composer require --dev mpociot/laravel-apidoc-generator

And I get:
```Using version ^4.5 for mpociot/laravel-apidoc-generator
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

Problem 1
- mpociot/laravel-apidoc-generator v4.x-dev requires nunomaduro/collision ^3.0 -> satisfiable by nunomaduro/collision[v3.0.0, v3.0.1] but these conflict with your requirements or minimum-stability.
- Installation request for mpociot/laravel-apidoc-generator ^4.5 -> satisfiable by mpociot/laravel-apidoc-generator[4.5.0, v4.x-dev].
- Conclusion: remove ramsey/uuid 4.0.1
- Conclusion: don't install ramsey/uuid 4.0.1
- mpociot/laravel-apidoc-generator 4.5.0 requires ramsey/uuid ^3.8|4.0 -> satisfiable by ramsey/uuid[3.8.0, 3.9.0, 3.9.1, 3.9.2, 3.9.3, 3.x-dev, 4.0.0].
- Can only install one of: ramsey/uuid[3.8.0, 4.0.1].
- Can only install one of: ramsey/uuid[3.9.0, 4.0.1].
- Can only install one of: ramsey/uuid[3.9.1, 4.0.1].
- Can only install one of: ramsey/uuid[3.9.2, 4.0.1].
- Can only install one of: ramsey/uuid[3.9.3, 4.0.1].
- Can only install one of: ramsey/uuid[3.x-dev, 4.0.1].
- Can only install one of: ramsey/uuid[4.0.0, 4.0.1].
- Installation request for ramsey/uuid (locked at 4.0.1) -> satisfiable by ramsey/uuid[4.0.1].

Installation failed, reverting ./composer.json to its original content.
```

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hackel picture hackel  路  8Comments

chinloyal picture chinloyal  路  8Comments

ashokTagtaste picture ashokTagtaste  路  8Comments

dozieogbo picture dozieogbo  路  4Comments

arikardnoir picture arikardnoir  路  8Comments