繁体   English   中英

调用未定义的方法 Laravel\\Socialite\\Facades\\Socialite::isDeferred()

[英]Call to undefined method Laravel\Socialite\Facades\Socialite::isDeferred()

嗨,我是 laravel socialite 的新手,当我运行命令 php artisan config:cache 来更新 .env 文件时,我收到此错误:调用未定义的方法 Laravel\\Socialite\\Facades\\Socialite::isDeferred();

composer require laravel/socialite

使用版本 ^5.1 for laravel/socialite ./composer.json 已更新 使用包信息加载 composer 存储库 更新依赖项(包括 require-dev) 包操作:6 次安装,0 次更新,0 次删除

  • 安装 ralouphie/getallheaders (3.0.3):从缓存加载
  • 安装 guzzlehttp/psr7 (1.7.0):从缓存加载
  • 安装 guzzlehttp/promises (1.4.0):从缓存加载
  • 安装 guzzlehttp/guzzle (7.2.0):从缓存加载
  • 安装 League/oauth1-client (v1.8.2):从缓存加载
  • 安装 laravel/socialite (v5.1.0):从缓存加载 'C:\\xampp\\htdocs\\matatu6.0\\vendor/laravel/socialite/59c666443f49cf231e2c48e7a17aefd5' 不是 zip 存档。 使用 ZipArchive 类解压失败,回退到解压命令 Failed to download laravel/socialite from dist: Failed to execute (9) unzip -qq -o "C:\\xampp\\htdocs\\matatu6.0\\vendor/laravel/socialite/59c666443f49cf231e2c7aef7 " -d "C:\\xampp\\htdocs\\matatu6.0/vendor/composer/5556bc2b"

[C:\\xampp\\htdocs\\matatu6.0\\vendor/laravel/socialite/59c666443f49cf231e2c48e7a17aefd5] 未找到中央目录结尾签名。 该文件不是一个 zipfile,或者它构成了一个多部分存档的磁盘。 在后一种情况下,将在此存档的最后一个磁盘上找到中央目录和 zipfile 注释。 解压:无法在 C:\\xampp\\htdocs\\matatu6.0\\vendor/laravel/socialite/59c666443f49cf231e2c48e7a17aefd5 或 C:\\xampp\\htdocs\\matatu6.0\\vendor,matatu6.0\\vendor,matatu6.0/vendor/matatu6.0找不到 C:\\xampp\\htdocs\\matatu6.0\\vendor/laravel/socialite/59c666443f49cf231 e2c48e7a17aefd5.ZIP,句号。

Now trying to download from source
  • 安装 laravel/socialite (v5.1.0): Cloning 14082c6651 from cache guzzlehttp/psr7 建议安装 laminas/laminas-httphandlerrunner(发出 PSR-7 响应) guzzlehttp/guzzle 建议安装 ext-intl(需要国际化域名 (IDN) 支持)包 jakub-onderka/php-console-color 被放弃,你应该避免使用它。 改用 php-parallel-lint/php-console-color 。 包 jakub-onderka/php-console-highlighter 被放弃,你应该避免使用它。 改用 php-parallel-lint/php-console-highlighter。 写入锁定文件 生成优化的自动加载文件

Illuminate\\Foundation\\ComposerScripts::postAutoloadDump @php artisan package:discover --ansi

在 ProviderRepository.php 第 149 行:

调用未定义的方法 Laravel\\Socialite\\Facades\\Socialite::isDeferred()

脚本@php artisan package:discover --ansi 处理返回错误代码 1 的 post-autoload-dump 事件

安装失败,将 ./composer.json 恢复为其原始内容。

更新:从在 config/app 中声明提供类的 laravel 5 方式升级,这最终与 laravel 6 包自动发现冲突,因此甚至导致php artisan config:clearcomposer dump-autoload不起作用。 config/app.php删除'Socialite' => Laravel\\Socialite\\Facades\\Socialite::class解决了这个问题并重新安装了 socialite 包

暂无
暂无

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM