Open ucrstubbs opened 2 years ago
So the latest spatie/laravel-medialibrary which supports PHP 7.2 & PHP 7.3 is 7.20, which means you're downgrading that package.
If you want to do that instead of upgrading your PHP version then in your composer.json change it to "spatie/laravel-medialibrary": "^7.20",
Now it depends on if you're using composer install
or composer update
.
composer update will downgrade your spatie package.
Recommended is to upgrade to PHP 7.4, but you'll never know what you run into. I would use docker, which makes it easier.
I seem to be running into an issue in the installation process.
Problem 1
spatie/laravel-medialibrary 8.7.2 requires php ^7.4 -> your php version (7.3.31) does not satisfy that requirement.
As you can see i am running PHP 7.3.31, When i try to run PHP 7.4 I receive a similar log output for different dependencies specifying that they require PHP 7.3.
What is the best way for me to resolve this as it seems the dependencies require different versions of PHP to function?