I have PHP 8.0.7 running on Valet. When I run composer require spatie/image I get this error:
Problem 1
- league/glide 2.0.x-dev requires php ^5.4 | ^7.0 -> your php version (8.0.7) does not satisfy that requirement.
- league/glide 2.0.0 requires league/flysystem ^2.0 -> found league/flysystem[2.0.0-alpha.1, ..., 2.x-dev] but the package is fixed to 1.1.5 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
- spatie/image 2.0.0 requires league/glide ^2.0 -> satisfiable by league/glide[2.0.0, 2.0.x-dev].
- Root composer.json requires spatie/image 2 -> satisfiable by spatie/image[2.0.0].
I'm not very knowledgeable in resolving composer issues. As far as I know, spatie/image supports PHP 8. But it looks like it's trying to pull in league/glide 2.0.x-dev for some reason, which does not support PHP 8. I think the latest version of league/glide does support PHP 8.
Am I doing something wrong? How do I get spatie/image to pull in the latest league/glide? Or is that not what I should be trying to do?
@snapey flysystem is not in my composer.json. I'm building a laravel app, just recently started from a fresh laravel installation. I see in the laravel/framework/composer.json "league/flysystem": "^1.1",
So currently I'm storing the image path direct on the the row for the specific item. eg. posts has a column called image, and in that column I'm storing the direct image path. But now I'm thinking of instead store a "image id" in the column, and have a lookup table of "images". But I don't know I want to have multipel image tables, like "avatar_images", "post_images" etc. One image table, for all site images, and thumbnails. Does this seems like a good approach ?