在 运行 "composer require lorisleiva/laravel-search-string" 时发出

Issue while running "composer require lorisleiva/laravel-search-string"

我一直在尝试安装 lorisleiva/laravel-search-string,但我一直收到此错误。 需要这个库来实现搜索功能。 甚至 composer update 也会出现同样的错误。 (在更新的情况下只是问题 2)。 我也在下方添加了 composer.json。希望这会好起来的。 需要一些指导。

`{
"name": "laravel/laravel",
"type": "project",
"description": "The Laravel Framework.",
"keywords": [
    "framework",
    "laravel"
],
"license": "MIT",
"require": {
    "php": "^7.4",
    "ext-json": "*",
    "asm-laravel-admin-ext/tmeditor": "^1.0",
    "barryvdh/laravel-ide-helper": "^2.7",
    "cartalyst/stripe": "~2.0",
    "darkaonline/l5-swagger": "^7.0",
    "doctrine/dbal": "^2.10",
    "encore/laravel-admin": "^1.7",
    "facade/ignition": "^2.0",
    "fideloper/proxy": "^4.0",
    "fruitcake/laravel-cors": "^2.0",
    "guzzlehttp/guzzle": "^7.0",
    "intervention/image": "^2.5",
    "james.xue/laravel-admin-sortable": "^1.0",
    "laravel-admin-ext/config": "^1.1",
    "laravel-admin-ext/helpers": "^1.2",
    "laravel-admin-ext/log-viewer": "^1.0",
    "laravel-admin-ext/redis-manager": "^1.3",
    "laravel-admin-ext/scheduling": "^1.1",
    "laravel/framework": "^7.0",
    "laravel/helpers": "^1.2",
    "laravel/slack-notification-channel": "^2.1",
    "laravel/socialite": "^4.4",
    "laravel/tinker": "^2.0",
    "laravel/ui": "^2.0",
    "league/flysystem-aws-s3-v3": "^1.0",
    "league/oauth2-client": "^2.4",
    "nazmulb/mac-address-php": "dev-master",
    "phpunit/phpunit": "^8.5",
    "sentry/sentry-laravel": "1.7.1",
    "socialiteproviders/discord": "^2.0.2",
    "socialiteproviders/twitch": "^5.2",
    "stripe/stripe-php": "^7.17",
    "tightenco/ziggy": "^0.9.3",
    "tymon/jwt-auth": "1.0.0"
},
"require-dev": {

    "fzaninotto/faker": "^1.4",
    "mockery/mockery": "^1.0"
},
"config": {
    "optimize-autoloader": true,
    "preferred-install": "dist",
    "sort-packages": true
},
"extra": {
    "laravel": {
        "dont-discover": []
    }
},
"autoload": {
    "psr-4": {
        "App\": "app/"
    },
    "classmap": [
        "database/seeds",
        "database/factories"
    ]
},
"autoload-dev": {
    "psr-4": {
        "Tests\": "tests/"
    }
},
"minimum-stability": "dev",
"prefer-stable": true,
"scripts": {
    "post-autoload-dump": [
        "Illuminate\Foundation\ComposerScripts::postAutoloadDump",
        "@php artisan package:discover --ansi"
    ],
    "post-root-package-install": [
        "@php -r \"file_exists('.env') || copy('.env.dev', '.env');\""
    ],
    "post-create-project-cmd": [
        "@php artisan key:generate --ansi"
    ]
}`

您正在使用 laravel 7,我认为 laravel 7 不支持此软件包,laravel 6

将支持

给定的错误消息说明了一切:目前,由于任何其他要求,您在 v1.7.0 中安装了 league/oauth1-client,并且该软件包与 guzzlehttp/guzzlev7 不兼容。您应该开始检查 为什么 第一个软件包是通过 composer why league/oauth1-client 安装的——这个软件包最后一次更新是在四年前,而且您还需要 league/oauth2-client,你可以安全地删除它