title: Laravel socialite Save avatar
body: <p>everybody, I need to Save image name in the avatar column in the database 
  and save the image in public/Storage/users My Code Here Save image link in the database any help, please.</p>
  
  <pre><code>public function handleProviderCallback($service)
  {
      $user = Socialite::driver($service)-&gt;user();
      $FindUser = User::where('email',$user-&gt;getEmail())-&gt;first();
          if($FindUser){
              Auth::login($FindUser);
          }
          else{
              $NewUser = new User;
              $NewUser-&gt;email = $user-&gt;getEmail();
              $NewUser-&gt;name  = $user-&gt;getName();
              $NewUser-&gt;avatar  = $user-&gt;getAvatar();
              $NewUser-&gt;password  = bcrypt(123456);
              $NewUser-&gt;save();
              Auth::login($NewUser);
          }
      return redirect('/');
  }
  </code></pre>