title: Getting Google Refresh Token with Laravel Socialite
body: <p>Using Laravel Socailite to connect to the Google API and I am getting back a connection fine, however this access doesn't return a refresh token so my connection is timing out. </p>
  
  <pre><code>$scopes = [
              'https://www.googleapis.com/auth/webmasters',
              'https://www.googleapis.com/auth/webmasters.readonly',
              'https://www.googleapis.com/auth/analytics.readonly',
              'https://www.googleapis.com/auth/userinfo.profile',
              'https://www.googleapis.com/auth/userinfo.email',
            ];    
  $parameters = ['access_type' =&gt; 'offline'];
  return Socialite::driver('google')-&gt;scopes($scopes)-&gt;with($parameters)-&gt;redirect();
  </code></pre>
  
  <p>How do I get the refresh token back?</p>