title: Getting header info through php://input
body: <p>I am trying to get my webhooks header (Woocommerce webhook),</p>
  
  <p>I am retrieving the body with file_get_contents('php://input'), although this only gives the body according to <a href="http://php.net/manual/en/wrappers.php.php" rel="nofollow noreferrer">http://php.net/manual/en/wrappers.php.php</a></p>
  
  <p>I also found this thread: <a href="https://stackoverflow.com/questions/32175002/file-get-contentsphp-input-showing-null-when-var-dump">link</a>, but I can't figure it out.
  Is there any other function that gives me back the header?</p>
  
  <p>My function looks like this:</p>
  
  <pre><code>public function webhook(Request $request) {
      $json = file_get_contents('php://input');
      Storage::disk('local')-&gt;put('file.txt', $json);
  }
  </code></pre>
  
  <hr>
  
  <p>Edit: Other things I tried:</p>
  
  <pre><code>public function webhook(Request $request) {
      $json = file_get_contents('php://input');
      $headers = getallheaders();
      Storage::disk('local')-&gt;put('file.txt', $headers['Content-Name']);
  }
  </code></pre>
  
  <p>This sets the webhook to "Disabled", I suppose this throws an error for some reason.</p>
  
  <p><code>apache_request_headers</code> is not changing the status to "Disabled" but is returning an empty file.txt</p>