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:
642