What is the correct way to remove a package from Laravel using PHP Composer?
So far I've tried:
composer update
composer dump-autoload
None of these options are working! What am I missing?
Just delete the folder. Composer just facilitate to create a laravel project on your behalf with correct version and dependencies. Show activity on this post. Yes it is a just a delete command.
And the package can be found in the project's vendor/ directory.
Running the following command will remove the package from vendor (or wherever you install packages), composer.json and composer.lock. Change vendor/package appropriately.
composer remove vendor/package
Obviously you'll need to remove references to that package within your app.
I'm currently running the following version of Composer:
Composer version 1.0-dev (7b13507dd4d3b93578af7d83fbf8be0ca686f4b5) 2014-12-11 21:52:29
https://getcomposer.org/doc/03-cli.md#remove
I got it working... The steps to remove a package from Laravel are:
composer update vendor/package-name
. This will remove the package folder from the vendor
folder and will rebuild the Composer autoloading map.It will remove the package folder from the Vendor
folder.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With