Remove Composer Package and its Dependencies from Laravel

This is a quick article on how you can remove a composer dependency from the Laravel project.

Open the terminal / command-prompt and navigate to the project root directory and execute the following command.

composer remove vendor/package-name

Running the following command will remove the composer package as well as its dependencies. This will also remove the package from the composer.json file as well as composer.lock file.

Once this composer package is removed, you’ll have to manually remove the references to the package files if you used it in your application.

Related Articles

If you like our content, please consider buying me a coffee.

Thank you for your support!

Buy me a coffeeBuy me a coffee

Leave a reply:

Your email address will not be published.

Site Footer