How to remove a package from Laravel using composer

4
(1)

To remove a package using composer command

composer remove <package>

To install a package using composer command

composer require <package>

To install all packages which are mentioned in composer.json

composer install

To update packages

composer update

I used these for Laravel project:

Before removing a package from composer.json declaration, please remove cache

php artisan cache:clear
php artisan config:clear

If you forget to remove cache and you get class not found error then please reinstall the package and clear cache and remove again.

Similar Posts:

491

How useful was this post?

Click on a star to rate it!

Average rating 4 / 5. Vote count: 1

No votes so far! Be the first to rate this post.

Scroll to Top