InfyOmLabs / adminlte-generator

Boilerplate of Laravel with InfyOm Laravel Generator for AdminLTE Templates
https://infyom.com/open-source/laravelgenerator/docs/8.0/boilerplates
387 stars 272 forks source link

problem with installing darkaonline/l5-swagger on laravel 5.6 template #54

Closed amirreza1751 closed 5 years ago

amirreza1751 commented 5 years ago

I have cloned the 5.6 branch and tried to install darkaonline/l5-swagger 5.6 which customized for laravel 5.6 and got this error: *Problem 1 - Installation request for laravel/framework (locked at v6.0.0, required as ^6.0) -> satisfiable by laravel/framework[v6.0.0]. - darkaonline/l5-swagger 5.6.0 requires laravel/framework 5.6. -> satisfiable by laravel/framework[5.6.x-dev]**

but when I try to install swagger on a fresh laravel 5.6 project it successfully installs. What I want to use is infyom api_scaffold generator and swagger api documentation.

thanks for your help.

mitulgolakiya commented 5 years ago

@amirreza1751 based on the error, it looks like you have laravel/framework 6 installed. But when I see the 5.6 branches for this repo, it has laravel 5.6 only. https://github.com/InfyOmLabs/adminlte-generator/blob/5.6/composer.json#L17

I would say you double-check your repo. Or if possible paste your composer.json here.

amirreza1751 commented 5 years ago

Thank you and sorry. because that was my mistake. I had cloned the wrong branch and that caused the problem.