title: Quickblox REST API Unexpected signature on Laravel
body: <p>I'm getting the following json response from QuickBlox REST API: </p>
  
  <pre><code>{
      "base": ["Unexpected signature"]
  }
  </code></pre>
  
  <p>My signature method:</p>
  
  <pre><code>private function createSignature($login, $password, $timestamp, $nonce)
  {
      $signatureContent = "application_id=" . env('QB_APP_ID') .
          "&amp;auth_key=" . env('QB_APP_KEY') .
          "&amp;nonce=" . $nonce .
          "&amp;timestamp=" . $timestamp .
          "&amp;user[login]=" . $login .
          "&amp;user[password]=" . $password;
  
      return hash_hmac('sha1', $signatureContent, env('QB_APP_SECRET'));
  }
  </code></pre>
  
  <p>The Application ID and Auth Key and  is correct. The <code>$signatureContent</code> value(break lines just to improve the text readability):</p>
  
  <pre><code>application_id=24544
  &amp;auth_key=6N9bYKT-fKGRQ7q
  &amp;nonce=268302610
  &amp;timestamp=1438287989
  &amp;user[login]=tester1@test.net
  &amp;user[password]=qwer1234
  </code></pre>
  
  <p>I getting this response when I try to create a session, using this params:</p>
  
  <pre><code>$postBody = http_build_query([
      'application_id' =&gt; env('QB_APP_ID'),
      'auth_key' =&gt; env('QB_APP_KEY'),
      'timestamp' =&gt; $ts, // SAME VALUE ON SIGNATURE: 1438287989
      'nonce' =&gt; $nonce, // SAME VALUE ON SIGNATURE: 268302610
      'signature' =&gt; $signature,
      'user[login]' =&gt; $login,
      'user[password]' =&gt; $password
  ]);
  
  // cURL Request and Response....
  </code></pre>
  
  <p>What's wrong with my signature?</p>