Guilhem V
Guilhem V

Reputation: 381

Remove package from Laravel

I executed these 2 commands:

composer require realrashid/sweet-alert
composer require infinety/alerts *@dev

They are packages to use SweetAlert on Laravel but they are not working and I found a better one, I want to remove them, when I do composer remove vendor/realrashid or composer remove vendor/infinety it say that the package is not installed and is not required in my composer.json, so It has not been removed but the package is still here..

Upvotes: 2

Views: 8811

Answers (3)

Mahfuzhur Rahman
Mahfuzhur Rahman

Reputation: 68

you have to run this command in your terminal: composer remove vendor/package_name

Upvotes: 0

Kenneth Sunday
Kenneth Sunday

Reputation: 895

Another way is to go to your composer.json file and then remove that certain package then recall the 'composer update' method. Since composer remove will completely remove the library to your composer cache because you might using that library to other projects so when you try to composer install again that library, composer will download that package again instead of checking the composer cache memory.

Upvotes: 1

common sense
common sense

Reputation: 3912

No need to use vendor. Just composer remove realrashid/sweet-alert.

Upvotes: 11

Related Questions