Laravel Socialite broken after hosting type is changed

I am using Socialite 3.0 with laravel 5.2. The social login feature was working fine for several months on my website. Then I switched my account type in shared hosting provider from economy to delux. Haven't changed any code since. I noticed that both Facebook and Google login is now failing with following error

FatalErrorException in SocialAccountService.php line 15: Call to undefined function AppgetId().

SocialAccountService.php code

 namespace App;
    use LaravelSocialiteContractsUser as ProviderUser;
    class SocialAccountService
    {
    public function createOrGetUser(ProviderUser $providerUser)
    {
    $account = SocialAccount::whereProvider('facebook')

->whereProviderUserId($providerUser->getId()) ->first();

if ($account) { return $account->user; with if ($account) { on line 15 I can't update socialite as it is already the latest version. is there anyway to reinstall socialite? or did any file in the vendor folder get corrupted? How can i solve this issue?

链接地址: http://www.djcxy.com/p/33122.html

上一篇: 在Twitter登录后,Laravel 5.4和Socialite重定向到呼叫页面

下一篇: Laravel Socialite在托管类型后发生故障而被更改