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.

Comments