How to install a specific version of package using Composer?

前端 未结 6 1121
野趣味
野趣味 2020-11-28 01:05

I am trying to install a specific version of a package using Composer. I tried composer install and composer require but they are installing the la

6条回答
  •  盖世英雄少女心
    2020-11-28 01:16

    Suppose you want to install Laravel Collective. It's currently at version 6.x but you want version 5.8. You can run the following command:

    composer require "laravelcollective/html":"^5.8.0"
    

    A good example is shown here in the documentation: https://laravelcollective.com/docs/5.5/html

提交回复
热议问题