Remove Package from Laravel

You can remove all packages no longer required from the Laravel application. Use the following command to remove the package from vendor. This will also update composer.json and composer.lock accordingly. Change vendor/package with the packages name to delete. For example, below command will delete doctrine/annotations from Laravel application. That’s it. You may now need to remove all the references added in the application code. The above instructions can be used with any PHP application using composer for removing packages.


title: “How To Remove Package From Laravel Composer Tecadmin” ShowToc: true date: “2022-12-07” author: “Natalie Enciso”

Remove Package from Laravel

You can remove all packages no longer required from the Laravel application. Use the following command to remove the package from vendor. This will also update composer.json and composer.lock accordingly. Change vendor/package with the packages name to delete. For example, below command will delete doctrine/annotations from Laravel application. That’s it. You may now need to remove all the references added in the application code. The above instructions can be used with any PHP application using composer for removing packages.