coreui / coreui-free-laravel-admin-template

CoreUI Free Laravel Bootstrap Admin Template
https://coreui.io/laravel/
MIT License
620 stars 354 forks source link

composer install failed #79

Open ucrstubbs opened 2 years ago

ucrstubbs commented 2 years ago

I seem to be running into an issue in the installation process.

Problem 1

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?

nielsdrost7 commented 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.