mtrajano / laravel-swagger

Auto generates the swagger documentation of a laravel project based on best practices and simple assumptions
167 stars 71 forks source link

Laravel 8 installation problem #52

Closed darki73 closed 3 years ago

darki73 commented 3 years ago

Description:

composer require mtrajano/laravel-swagger
    1/2:        http://repo.packagist.org/p/provider-latest$0f8ef8716dcf883ffa6be62469aa0047043a1ca56377aa270d45090a0b3ac17e.json
    2/2:        http://repo.packagist.org/p/provider-2020-07$d81dbaf64d43d2489fabb975bfa8f9f16df42435286a2db9f5139e31e2a2e246.json
    Finished: success: 2, skipped: 0, failure: 0, total: 2
Using version ^0.6.3 for mtrajano/laravel-swagger
./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
    - Conclusion: remove phpdocumentor/reflection-common 2.2.0
    - Conclusion: don't install phpdocumentor/reflection-common 2.2.0
    - phpdocumentor/reflection-docblock 4.3.0 requires phpdocumentor/reflection-common ^1.0.0 -> satisfiable by phpdocumentor/reflection-common[1.0, 1.0.1].
    - phpdocumentor/reflection-docblock 4.3.1 requires phpdocumentor/reflection-common ^1.0.0 -> satisfiable by phpdocumentor/reflection-common[1.0, 1.0.1].
    - Can only install one of: phpdocumentor/reflection-common[1.0, 2.2.0].
    - Can only install one of: phpdocumentor/reflection-common[1.0.1, 2.2.0].
    - Installation request for phpdocumentor/reflection-common (locked at 2.2.0) -> satisfiable by phpdocumentor/reflection-common[2.2.0].
    - Installation request for mtrajano/laravel-swagger ^0.6.3 -> satisfiable by mtrajano/laravel-swagger[v0.6.3].
    - Conclusion: don't install phpdocumentor/reflection-docblock 5.2.2|install phpdocumentor/reflection-docblock 4.3.0|install phpdocumentor/reflection-docblock 4.3.1
    - Conclusion: remove phpdocumentor/reflection-docblock 5.2.2|install phpdocumentor/reflection-docblock 4.3.0|install phpdocumentor/reflection-docblock 4.3.1
    - mtrajano/laravel-swagger v0.6.3 requires phpdocumentor/reflection-docblock ^4.3 -> satisfiable by phpdocumentor/reflection-docblock[4.3.0, 4.3.1, 4.3.2, 4.3.3, 4.3.4].
    - Can only install one of: phpdocumentor/reflection-docblock[4.3.2, 5.2.2].
    - Can only install one of: phpdocumentor/reflection-docblock[4.3.3, 5.2.2].
    - Can only install one of: phpdocumentor/reflection-docblock[4.3.4, 5.2.2].
    - Installation request for phpdocumentor/reflection-docblock (locked at 5.2.2) -> satisfiable by phpdocumentor/reflection-docblock[5.2.2].

Unable to install this package on fresh Laravel 8 installation, receiving the error mentioned above.

darki73 commented 3 years ago

Also, it would be nice to do something like this: image

Which will in turn produce the following output in the docs: image

Here is a repo i've made with the said changes darki73/laravel-swagger. For anyone who sees this repo, it is purely to solve problems i had, i am not planning to maintain it, please stick with the repo of THIS author, it is amazing, just wait for an update for Laravel 7/8.

tim-rosseel commented 3 years ago

Is there already a solution?! :-)

sigaev-pro commented 3 years ago

The same problem.

mtrajano commented 3 years ago

Hey I'm sorry I had merged this fix for this into master but never cut the new release, this should be working now on v0.6.4, feel free to reopen the issue if that's not the case