未定义索引:Linkedin的publicProfileUrl-Laravel / Socialite

时间:2019-04-18 17:39:39

标签: laravel linkedin-api laravel-socialite

当某人尝试在其LinkedIn个人资料可见性未公开(即this)时尝试登录我的网站时,则我的网站针对该人尝试注册时返回未定义的索引/错误异常消息。有没有解决的办法?

我的代码是-

$user->name = $linkedinuser->name;

    $user->email = $linkedinuser->email;

    $user->password = bcrypt("password");

    $user->avatar = $linkedinuser->avatar;

    $user->linkedin_headline = $linkedinuser->user['headline'];

    $user->linkedin_url = $linkedinuser->user['publicProfileUrl'];

0 个答案:

没有答案