i ran in a problem using composer for installing/uninstalling some dependencies in laravel which coming back after deleting them from composer.json and deleting the
composer.json
Don't edit your composer.json file manually to remove a package - it will remain in composer.lock.
composer.lock
Use composer remove to delete the old package then composer require to install the replacement.
composer remove
composer require