How to Uninstall a Composer Package in Laravel 10

Posted by

Composer is a powerful dependency manager for PHP that is widely used in Laravel projects to manage libraries and packages. While adding new packages enhances the functionality of your Laravel application, there might be scenarios where you need to uninstall or remove a package. In this guide, we’ll walk through the step-by-step process of uninstalling a Composer package in Laravel 10.

Step 1: Identify the Package to Uninstall

Firstly, identify the Composer package that you want to uninstall. You can find this information in your composer.json file, which is located at the root of your Laravel project.

Step 2: Open Terminal or Command Prompt

Open your terminal or command prompt. Navigate to the root directory of your Laravel project.

Step 3: Run Composer Remove Command

Use the composer remove command followed by the package name to uninstall the package. For example:

composer remove vendor/package-name

Run Command:-

Output:-

Step 4: Verify Removal

Hopefully, It will help you….!!!!

Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x