title: Remove header value from the response
body: <p>I have a laravel system and I am storing one of my response in a particular file like this :</p>
  
  <pre><code>$objFile = new Filesystem();
          $path = "files/FileName.php";
          $string = $this-&gt;getSlides();
          if ($objFile-&gt;exists($path))
          {
              $objFile-&gt;put($path,"",$lock = false);
              $objFile-&gt;put($path,$string,$lock = false);
              $objFile-&gt;getRequire($path);
          }
          else
              return getcwd() . "\n";
  </code></pre>
  
  <p>Now i get the contents using the following lines:</p>
  
  <pre><code>$objFile = new Filesystem();
          $path = "files/FileName.php";
  
          if ($objFile-&gt;exists($path))
          {
              return Response::json([$objFile-&gt;getRequire($path)],200);
          }
          else
              return getcwd() . "\n";
  </code></pre>
  
  <p>Now what's happening is that when I store the file on the server it adds some header like :</p>
  
  <pre><code>HTTP/1.0 200 OK
  Cache-Control: no-cache
  Content-Type:  application/json
  Date: Thu, 10 Nov 2016 05:38:08 GMT
  </code></pre>
  
  <p>followed by my stored file , so when I call the file on my frontend , I get the following error :</p>
  
  <pre><code>SyntaxError: Unexpected token H in JSON at position 0(…)
  </code></pre>
  
  <p>of course it expects from me a json value however i m giving it something that doesn't start like 1. Any idea how i can remove that on php level?</p>