[英]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.