简体   繁体   English

Laravel - 没有找到“社交名媛”

[英]Laravel - Class 'Socialite' not found

Hi there I have problem with Socialite. 你好,我有社交网络的问题。

I have installed everything how was in GitHub - https://github.com/laravel/socialite but I don't know why but always I have this same problem 我已经安装了GitHub中的所有内容 - https://github.com/laravel/socialite但我不知道为什么但总是有同样的问题 截图

Thanks, S 谢谢,S

Put the use Socialite; 放入use Socialite; at the top of the UserController.php file. UserController.php文件的顶部。

Try: 尝试:

composer dump-autoload

composer install installs the vendor packages according to composer.lock (or creates composer.lock if not present), composer install根据composer.lock安装供应商软件包(如果不存在,则创建composer.lock),

composer update always regenerates composer.lock and installs the lastest versions of available packages based on composer.json composer更新始终会重新生成composer.lock并安装基于composer.json的可用软件包的最新版本

composer dump-autoload won't download a thing. 作曲家dump-autoload不会下载任何东西。 It just regenerates the list of all classes that need to be included in the project (autoload_classmap.php). 它只是重新生成项目中需要包括的所有类的列表(autoload_classmap.php)。 Ideal for when you have a new class inside your project. 当您在项目中有新课程时的理想选择。 Ideally, you execute composer dump-autoload -o , for a faster load of your webpages. 理想情况下,您可以执行composer dump-autoload -o,以更快地加载网页。 The only reason it is not default, is because it takes a bit longer to generate (but is only slightly noticable) 它不是默认值的唯一原因是生成它需要花费更长的时间(但只有一点点值得注意)

Also run this command: 还要运行以下命令:

php artisan config:clear

Hope it will help you :) 希望它能帮到你:)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 未找到 Laravel 级社交名媛 - Laravel Class Socialite not found 找不到laravel社会名流类ServiceProvider - laravel socialite class ServiceProvider not found 找不到 Laravel5 类“Laravel\\Socialite\\SocialiteServiceProvider” - Laravel5 Class 'Laravel\Socialite\SocialiteServiceProvider' not found Laravel / Socialite:类Laravel \\ Socialite \\ Contracts \\ Factory不存在 - Laravel/Socialite: Class Laravel\Socialite\Contracts\Factory does not exist ProviderRepository.php第146行中的FatalThrowableError:未找到类'Laravel \\ Socialite \\ SocialiteServiceProvider' - FatalThrowableError in ProviderRepository.php line 146: Class 'Laravel\Socialite\SocialiteServiceProvider' not found Spark Laravel 5.4中未定义的类社交名称 - Undefined class Socialite in Spark Laravel 5.4 laravel socialite google login / google auth,回调“404 not found” - laravel socialite google login / google auth, callback "404 not found" 无法将Laravel \\ Socialite \\ Two \\ User类的ErrorException对象转换为字符串 - ErrorException Object of class Laravel\Socialite\Two\User could not be converted to string Laravel Socialite : Laravel\\Socialite\\Two\\InvalidStateException - Laravel Socialite : Laravel\Socialite\Two\InvalidStateException Laravel 社交名流:Laravel\Socialite\Two\InvalidStateException - Laravel Socialite: Laravel\Socialite\Two\InvalidStateException
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM