title: Laravel Socialite first and last name
body: <p>I'm adding social authentication to an application using Laravel's Socialite. I can retrieve the full name but not the first and last names separately. After the callback happens and Socialite is handling it, the user is retrieved successfully. If I am to dump the user I get back from <code>$user = this-&gt;social-&gt;driver('facebook')-&gt;user();</code> I get the following:</p>
  
  <pre><code>object(Laravel\Socialite\Two\User)#459 (8) {
       ["token" ]=&gt; string(209) "{token}"
       ["id"] =&gt; string(17) "{socialID}"
       ["nickname"] =&gt; NULL
       ["name"] =&gt; string(14) "{Full Name}"
       ["email"] =&gt; string(19) "{Email address}"
       ["avatar"] =&gt; string(69) "https://graph.facebook.com/v2.4/{socialID}/picture?type=normal"
       ["user"] =&gt; array(6) {
          ["first_name"] =&gt; string(6) "{First name}"
          ["last_name"] =&gt; string(7) "{Last mame}"
          ["email"] =&gt; string(19) "{Email address}"
          ["gender"] =&gt; string(4) "male"
          ["verified"] =&gt; bool(true)
          ["id"] =&gt; string(17) "{socialID}"
      }
      ["avatar_original"] =&gt; string(68) "https://graph.facebook.com/v2.4/{socialID}/picture?width=1920"
  </code></pre>
  
  <p>}</p>
  
  <p>I can obtain the full name or email via <code>$user-&gt;name</code> or <code>$user-&gt;email</code> however, I can not get the separate first and last names. I have tried <code>$user-&gt;first_name</code> as well as trying to dump the <code>$user-&gt;user</code> array but all I see is undefined property errors.</p>
  
  <p>I do not want to do something weird like extract it from the full name when the separate first and last name are clearly there as it can get ugly when middle names are present.</p>
  
  <p>I have Googled my way around and weirdly, nobody came across this issue. Am I missing something from <a href="http://laravel.com/docs/5.1/authentication#social-authentication" rel="noreferrer">the docs</a>?
  Any suggestions on how to retrieve the first and last name from the <code>user</code> array are greatly appreciated.</p>