This commit is contained in:
Masroor Ehsan 2025-01-05 20:07:08 +06:00
parent 7e4bcd6309
commit e83cc80dbe

View File

@ -32,8 +32,10 @@ public function handleProviderCallback(string $driver)
$updates = []; $updates = [];
if (blank($user->profile_photo_path)) { if (blank($user->profile_photo_path)) {
$updates['profile_photo_path'] = $this->buildAvatarUrl($social->getAvatar(), $social->token); $updates['profile_photo_path'] = $this->fetchAvatar(
$updates['profile_photo_path'] = $this->fetchAvatar($social->getAvatar(), $social->token, $user->profilePhotoDisk()); $social->getAvatar(),
$social->token,
$user->profilePhotoDisk());
} }
if (blank($user->email)) { if (blank($user->email)) {
$updates['email'] = $social->getEmail(); $updates['email'] = $social->getEmail();