How to remove a package from Laravel using composer?

前端 未结 16 1971
[愿得一人]
[愿得一人] 2020-11-28 17:10

What is the correct way to remove a package from Laravel using composer? So far I\'ve tried:

  1. Remove declaration from composer.json (in "requir
16条回答
  •  春和景丽
    2020-11-28 18:09

    Remove the package with

    composer remove vendorname/packagename
    

    you can check remove package from composer.json - docs

    Or you can remove the package name from composer.json file and run composer update from within your project directory. I hope it helps.

提交回复
热议问题