codebar-ag / laravel-flysystem-cloudinary

Cloudinary Flysystem integration with Laravel.
https://www.cloudinary.com
MIT License
8 stars 5 forks source link

Laravel Upgrade from 8.75 to 10.10 #43

Closed Mubassir-developer closed 12 months ago

Mubassir-developer commented 1 year ago

I have created a new project with the latest version and then tried to install the required packages in that new project. and codebar-ag/laravel-flysystem-cloudinary is throwing an error. Please let me know what I should do.

` $ composer require codebar-ag/laravel-flysystem-cloudinary Cannot use codebar-ag/laravel-flysystem-cloudinary's latest version v3.1.0 as it requires php ^8.2 which is not satisfied by your platform. ./composer.json has been updated Running composer update codebar-ag/laravel-flysystem-cloudinary Loading composer repositories with package information Updating dependencies Your requirements could not be resolved to an installable set of packages.

Problem 1

You can also try re-running composer require with an explicit version constraint, e.g. "composer require codebar-ag/laravel-flysystem-cloudinary:*" to figure out if any version is installable, or "composer require codebar-ag/laravel-flysystem-cloudinary:^2.1" if you know which you need.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.`

RhysLees commented 12 months ago

As stated in the error message "Cannot use codebar-ag/laravel-flysystem-cloudinary's latest version v3.1.0 as it requires php ^8.2 which is not satisfied by your platform." It looks as if you are using a version of php lower than 8.2 which this package requires.

Ensure your composer.json you have "php": "^8.2", and the version of php-fpm you use is 8.2. You can check this by running the command php -v.

Then follow the install steps again.

Let me know if this solves your issue.

StanBarrows commented 12 months ago

@Mubassir-developer

CleanShot 2023-09-08 at 23 53 00@2x
Mubassir-developer commented 12 months ago

I was using php8.1. Issue resolve with php8.2