title: SSO Client Authentication in Laravel by using JWT
body: <p>I am trying to create a authentication system on Laravel based on JWT token. In the project, I am sending a login request to API and get Web Token if user succesfully login. I am using Guzzle package for the requests. </p>
  
  <p>I search lots of article about it but none of them make sense. </p>
  
  <p>My Controller : </p>
  
  <pre><code>public function sigin()
  {
      $client = new Client();
      $url = "https://localhost:8080/users/login";     
  
      $user-&gt;email = Input::get("email");
      $user-&gt;password = Input::get("password");
  
      $json_data = json_encode($user);
  
      try{
          $response = $client-&gt;request('POST',$url,[
              GuzzleHttp\RequestOptions::JSON =&gt; $json_data
          ]);
  
          // geting the Token in the response object. What should I do after get it 
  
      }
      catch(ServerException $exception)
      {
          $responseBody = $exception-&gt;getResponse()-&gt;getBody(true);
      }
  }
  </code></pre>