How to remove a package from Laravel using composer?

前端 未结 16 1973
[愿得一人]
[愿得一人] 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:02

    you can remove any package just by typing follwing command in terminal, and just remove the providers and alias you provided at the time of installing the package, if any and update the composer,

    composer remove vendor/your_package_name
    composer update
    

提交回复
热议问题