Avatar ·

How to remove a package from Laravel using Composer?

Hi everyone! I'm new to Laravel and Composer. I installed several packages for a project, but one of them turned out to be unnecessary. I'm trying to remove it, but I don't understand how to do it correctly.\n\nHere's what I did: I installed the `barryvdh/laravel-debugbar` package for debugging, but now I don't need it. I tried simply removing the line from the `composer.json` file:\n\n```json\n{\n "require": {\n "barryvdh/laravel-debugbar": "^3.0"\n }\n}\n```\n\nI removed this line, then ran `composer update`, but as a result, Composer updated all packages instead of just removing Debugbar. Moreover, the package still remained in the `vendor` folder. I even tried deleting the entire `vendor` folder and running `composer install`, but that took a lot of time and didn't solve the problem — the package was installed again.\n\nI also noticed that