gpt4 book ai didi

laravel - 未找到类 'SocialiteProviders\Manager\ServiceProvider'

转载 作者:行者123 更新时间:2023-12-04 12:45:57 31 4
gpt4 key购买 nike

文件:Composer.json ---------------------------------------

 {
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
"php": ">=7.0.0",
"barryvdh/laravel-debugbar": "^3.0",
"creativeorange/gravatar": "~1.0",
"doctrine/dbal": "^2.5",
"fideloper/proxy": "~3.3",
"google/recaptcha": "^1.1",
"intervention/image": "^2.4",
"jaybizzle/laravel-crawler-detect": "1.*",
"jeremykenedy/laravel-exception-notifier": "^1.1",
"jeremykenedy/laravel-https": "^1.1",
"jeremykenedy/laravel-logger": "^1.0.1",
"jeremykenedy/laravel-roles": "^1.1",
"jeremykenedy/laravel2step": "^1.0.2",
"jeremykenedy/uuid": "^3.1",
"laravel/framework": "5.5.*",
"laravel/socialite": "^3.0",
"laravel/tinker": "~1.0",
"laravelcollective/html": "^5.5",
"pusher/pusher-php-server": "^3.0",
"rap2hpoutre/laravel-log-viewer": "^0.10.4",
"socialiteproviders/37signals": "^3.0",
"socialiteproviders/generators": "^2.0",
"socialiteproviders/instagram": "^3.0",
"socialiteproviders/twitch": "^3.0",
"socialiteproviders/youtube": "^3.0"
},
}

//文件 app.php ----------------------------------------
 'providers' => [
SocialiteProviders\Manager\ServiceProvider::class,
SocialiteProviders\Generators\GeneratorsServiceProvider::class,
],
'aliases' => [
'Socialite' => Laravel\Socialite\Facades\Socialite::class,
]

不知道为什么没有成立
根链接: https://github.com/SocialiteProviders/Manager

最佳答案

当 composer autoload 卡住时,这个问题很常见。文档说正在运行
composer dump-autoloadphp artisan clear-compiled会解决这个问题,但有时不会。

解决这个问题的方法是删除文件 /bootstrap/cache/packages.php/bootstrap/cache/services.php然后运行 ​​composer update .

我是项目作者,如果您需要任何帮助,请告诉我。

关于laravel - 未找到类 'SocialiteProviders\Manager\ServiceProvider',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48376977/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com