How to remove a package from Laravel using composer?

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

    Before removing a package from composer.json declaration, please remove cache

    php artisan cache:clear  
    php artisan config:clear 
    

    If you forget to remove cache and you get class not found error then please reinstall the package and clear cache and remove again.

提交回复
热议问题