How can I remove a package from Laravel using PHP Composer?

Composer 1.x and 2.x Running the following command will remove the package from vendor (or wherever you install packages), composer.json and composer.lock. Change vendor/package appropriately. Obviously you’ll need to remove references to that package within your app. I’m currently running the following version of Composer: Documentation Updates 26/10/2020 – Updated answer to assert command works … Read more

How can I resolve “Your requirements could not be resolved to an installable set of packages” error?

Your software dependencies have an incompatible version conflict. At the same time you want to install any Laravel 4.2.x version, and “zizaco/entrust” from its master branch. And that master branch requires at least Laravel 5.0 (roughly speaking). The problem comes from the dependency on branches. It’s likely that the package zizaco/entrust once was using Laravel … Read more