Hi i'm new to laravel socialite,when i run the command php artisan config:cache to update the .env file i get this error: Call to undefined method Laravel\\Socialite\\Facades\\Socialite::isDeferred();
composer require laravel/socialite
Using version ^5.1 for laravel/socialite ./composer.json has been updated Loading composer repositories with package information Updating dependencies (including require-dev) Package operations: 6 installs, 0 updates, 0 removals
[C:\\xampp\\htdocs\\matatu6.0\\vendor/laravel/socialite/59c666443f49cf231e2c48e7a17aefd5] End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes one disk of a multi-part archive. In the latter case the central directory and zipfile comment will be found on the last disk(s) of this archive. unzip: cannot find zipfile directory in one of C:\\xampp\\htdocs\\matatu6.0\\vendor/laravel/socialite/59c666443f49cf231e2c48e7a17aefd5 or C:\\xampp\\htdocs\\matatu6.0\\vendor/laravel/socialite/59c666443f49cf231e2c48e7a17aefd5.zip, and cannot find C:\\xampp\\htdocs\\matatu6.0\\vendor/laravel/socialite/59c666443f49cf231 e2c48e7a17aefd5.ZIP, period.
Now trying to download from source
Illuminate\\Foundation\\ComposerScripts::postAutoloadDump @php artisan package:discover --ansi
In ProviderRepository.php line 149:
Call to undefined method Laravel\\Socialite\\Facades\\Socialite::isDeferred()
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1
Installation failed, reverting ./composer.json to its original content.
update: upgrading from the laravel 5 way of declaring provide class in config/app, this ended up conflicting with laravel 6 package auto discovery, therefore causing even php artisan config:clear
and composer dump-autoload
not to work. removing 'Socialite' => Laravel\\Socialite\\Facades\\Socialite::class
in config/app.php
solved this issue and re-installing the socialite package
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.