title: Get Password Grant Tokens without http request for Laravel passport
body: <p>I am developing an REST API using Laravel 5.4 (passport).</p>
  
  <p>I want the user to get the access token on signup without making another http request.
  i have gone thorough Laravel documentation. but there is no direct way to get the access token. something like:-</p>
  
  <pre><code>$token = $user-&gt;getOathToken($user_id);
  </code></pre>
  
  <p>Passport documentation for <a href="https://laravel.com/docs/5.4/passport#refreshing-tokens" rel="nofollow noreferrer">password grant token</a></p>
  
  <p><strong>In documentation they provide something like this:</strong></p>
  
  <pre><code>    $http = new GuzzleHttp\Client;
  
      $response = $http-&gt;post('http://your-app.com/oauth/token', [
          'form_params' =&gt; [
              'grant_type' =&gt; 'refresh_token',
              'refresh_token' =&gt; 'the-refresh-token',
              'client_id' =&gt; 'client-id',
              'client_secret' =&gt; 'client-secret',
              'scope' =&gt; '',
          ],
      ]);
  
  return json_decode((string) $response-&gt;getBody(), true);
  </code></pre>
  
  <p>I don't want to make another http request. is there any way to avoid it?</p>