title: Create password grant access token and refresh token after user register
body: <p>Currently, I'm using <strong>personal access token</strong> for authentication when user register to site. like this.</p>
  
  <pre><code>/**
  * Register api 
  * 
  * @return \Illuminate\Http\Response 
  */ 
  
  public function register(Request $request) 
  { 
      $validator = Validator::make($request-&gt;all(), [ 
          'name' =&gt; 'required|string|max:255',
          'email' =&gt; 'required|string|email|max:255|unique:users',
          'password' =&gt; 'required|string|min:6|confirmed',
          'type' =&gt; 'required|string|max:50'
      ]);
  if ($validator-&gt;fails()) { 
          return response()-&gt;json(['error'=&gt;$validator-&gt;errors()], 401); 
      }
  $input = $request-&gt;all(); 
      $input['password'] = bcrypt($input['password']); 
      $user = User::create($input); 
      $success['token'] =  $user-&gt;createToken('MyApp')-&gt; accessToken; 
      $success['name'] =  $user-&gt;name;
  return response()-&gt;json(['success'=&gt;$success], $this-&gt; successStatus); 
  }
  </code></pre>
  
  <p>Now, I want to use password grant token so I can set token's expiry time from <strong>AuthServiceProvider</strong> simply by writing 1 line <strong>Passport::tokensExpireIn(now()->addDays(15));</strong></p>
  
  <p>My question is in register method shown in above code after user create and store in DB how can I call passport's route (/oauth/token with params: grant_type, client_id, client_secret, username, password) for create access token and refresh token?</p>