文件: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 ---------------------------------------- < / p>
'providers' => [
SocialiteProviders\Manager\ServiceProvider::class,
SocialiteProviders\Generators\GeneratorsServiceProvider::class,
],
'aliases' => [
'Socialite' => Laravel\Socialite\Facades\Socialite::class,
]
我不知道为什么它没有成立 根链接:https://github.com/SocialiteProviders/Manager
答案 0 :(得分:1)
从config/app.php
:
SocialiteProviders\Manager\ServiceProvider::class,
SocialiteProviders\Generators\GeneratorsServiceProvider::class,
'Socialite' => Laravel\Socialite\Facades\Socialite::class,
然后运行以下命令:
composer install
composer du
然后将所有三行放回config/app.php
答案 1 :(得分:1)
当编辑器自动加载被卡住时,这个问题很常见。文档说运行
composer dump-autoload
或php artisan clear-compiled
会解决这个问题,但有时却没有。
解决此问题的方法是删除文件/bootstrap/cache/packages.php
和/bootstrap/cache/services.php
,然后运行composer update
。
我是项目作者,如果您需要任何帮助,请告诉我。