title: laravel file_get_contents of a route get no response
body: <p>I have a route:</p>
  
  <pre><code>Route::group(array('prefix' =&gt; 'playlist'), function()
  {
     Route::get('raw/{id}', array('as'=&gt;'rawPlaylist', 'uses'=&gt;'PlaylistsController@raw'));
  });
  </code></pre>
  
  <p>When I open the URL:</p>
  
  <pre><code>http://localhost:8000/playlist/raw/1
  </code></pre>
  
  <p>Everything is fine and the page will load and show me the view.</p>
  
  <p>In a controller I get the URL:</p>
  
  <pre><code>$url = URL::route('rawPlaylist', 1);
  </code></pre>
  
  <p><strong>The problem:</strong>
  I want read the view and store the whole view into a variable:</p>
  
  <pre><code>$html = file_get_contents($url);
  </code></pre>
  
  <p>echo $url is <a href="http://localhost:8000/playlist/raw/1" rel="nofollow">http://localhost:8000/playlist/raw/1</a> this is right.</p>
  
  <p>But this does not work. I get no response, and the php artisan serve breaks.
  Why? What is wrong here?</p>