小编NIK*_*ATH的帖子

根 composer.json 需要 php ^7.3 但您的 php 版本 (8.0.0) 不满足该要求

运行composer install命令时出现异常错误。它需要 PHP 7.3,而我有 PHP 8.0.0。这个问题与Composer 中的 Override PHP base dependency不同,因为我的 PHP (8.0.0) 版本高于它所需的版本,只是想知道为什么它不起作用?

Problem 1
    - Root composer.json requires php ^7.3 but your php version (8.0.0) does not satisfy that requirement.         Problem 2
    - asm89/stack-cors is locked to version v2.0.1 and an update of this package was not requested.
    - asm89/stack-cors v2.0.1 requires php ^7.0 -> your php version (8.0.0) does not satisfy that requirement.   Problem 3
    - laravel/framework is locked to version v8.10.0 and …
Run Code Online (Sandbox Code Playgroud)

php laravel

34
推荐指数
1
解决办法
10万
查看次数

League\\Flysystem\\AwsS3v3\\AwsS3Adapter::__construct():参数 #1 ($client) 的类型必须为 Aws\\S3Client,给定的 Aws\\S3\\S3Client

Laravel 8我通过在项目中运行以下 Composer 命令安装了 s3 Flysystem 软件包

composer require --with-all-dependencies league/flysystem-aws-s3-v3 "^1.0"
Run Code Online (Sandbox Code Playgroud)

并尝试将请求中的文件存储为

$imageName = $request->file('file')->store('uploads');
Run Code Online (Sandbox Code Playgroud)

我收到以下错误

League\Flysystem\AwsS3v3\AwsS3Adapter::__construct():参数 #1 ($client) 必须是 Aws\S3Client 类型,Aws\S3\S3Client 给定,在 D:\Projects\Rescale\vendor\laravel\framework\ 中调用src\Illuminate\Filesystem\FilesystemManager.php 第 229 行

amazon-s3 amazon-web-services laravel laravel-filesystem laravel-8

4
推荐指数
1
解决办法
8411
查看次数