title: error rendering a sitemap with laravel
body: <p>I have a problem rendering a sitemap with laravel. 
  Generated xml seems ok but when i try to call the url from chrome or firefox i got an error </p>
  
  <pre><code> error on line 2 at column 6: XML declaration allowed only at the start of the document
  </code></pre>
  
  <p>In fact line 1 of the document is empty and xml declaration starts on line 2</p>
  
  <p>Here is my code :</p>
  
  <pre><code> return Response::view('sitemap.index', ['agences' =&gt; $agences])-&gt;header('Content-Type', 'application/xml');
  </code></pre>
  
  <p>i tried that syntax too : </p>
  
  <pre><code> $xml = View::make('sitemap.index', ['agences' =&gt; $agences]);
   return Response::make($xml, 200)-&gt;header('Content-Type', 'application/xml');
  </code></pre>
  
  <p>That way i could do </p>
  
  <pre><code> dd($xml-&gt;render()); 
  </code></pre>
  
  <p>and realize the string returned has no empty first line.
  So i'm guessing Response::make is the one to blame but i really have no idea where to look from there</p>