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