mercredi 2 août 2017

laravel/socialite 2.0 with instagram login

I am using socialite 2.0 package for social login and registration and it'll work fine. But I have check it'll not updating the information in table.bellow here is the code for the set record in database.

Code :

return (new User)->setRaw($user)->map([
            'id' => $user['id'], 'nickname' => null, 'name' => $firstName.' '.$lastName,
            'email' => isset($user['email']) ? $user['email'] : null, 'avatar' => $avatarUrl.'?type=normal',
            'avatar_original' => $avatarUrl.'?width=1920',
        ]);

Any one have idea please let me know.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire