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?