Package downgrade in laravel

3

I'm facing a problem to run composer install because of a package that is incompatible with the version of laravel I use at the moment;

The version I have is 4.1 with php 5.6, but when I run the install I get the message;

  

illuminate / support v5.5.2 requires php > = 7.0 - > your PHP version (5.6.32) does not satisfy that requirement.

Unfortunately someone upgraded the package and now I can not install it in the correct environment anymore. How can I make downgrade so that the packages are compatible with the current version of laravel? (4.1)

    
asked by anonymous 21.11.2017 / 14:25

1 answer

0

I would do so:

  • Remove the package with the command composer remove illuminate/support
  • Clear the cache with the command composer clear or composer clear-cache . This is important because at the time of reinstalling, Composer usually tries to get the version that is in the cache.

  • Run the command composer require illuminate/support 4.1.*

21.11.2017 / 16:12