title: Checking if the user is logged in or not using social authentication
body: <p>I have a method Where i save the user information after checking if the user is logged in or not :</p>
  
  <pre><code> public function index()
      {
             if(Auth::check())
              {
                    $newuser=new User();
                    $newuser-&gt;username=Auth::user()-&gt;username;
                    $newuser-&gt;email=Auth::user()-&gt;email;
                    $newuser-&gt;save();
              }
              else 
              {
                   // not logged in
              }
  
      }
  </code></pre>
  
  <p>But, if the user is logged in using social authentication, <code>Auth::check()</code> shows false and else statement is executed. How can i check if the user is logged in using social authentication.Something like:</p>
  
  <pre><code>if(Auth::check() || Socialite::driver('facebook')-&gt;user())
  {
     // logged in
  }
  else
  {
     // not logged in
  }
  </code></pre>
  
  <p>I can get the name and email with:</p>
  
  <pre><code>$username = Socialite::driver('facebook')-&gt;user()-&gt;username;
  $email = Socialite::driver('facebook')-&gt;user()-&gt;email;
  </code></pre>