How to remove a package from Laravel using PHP Composer?
Hello everyone! I'm new to Laravel and Composer, and I have a problem. I installed the `barryvdh/laravel-debugbar` package for debugging, but now I don't need it and I want to completely remove it from the project.\n\nI tried simply deleting the line from the `composer.json` file in the `require` section, but after that the project stopped working – errors about missing classes appeared. Then I tried running `composer update`, but that updated all packages instead of removing the specific one. In the end, I rolled back the changes using Git.\n\nPlease tell me how to properly remove a package? Do I need to delete anything else besides the entry in `composer.json`? For example, files in `vendor/` or service providers in `config/app.php`? I'm afraid of breaking the project since there's already a lot of code.\n\nExample of my `composer.json`:\n```json\n{\n "require": {
No answers yet.
Log in to leave an answer
Blogs