laravel/framework — pull request #5886 by antonioribeiro (2014-09-28 16:39:47+00:00)
Title: Test route dispatching with request parameters

Currently , if you create a request with parameters and dispatch it to a router, the new request will have none of those paremeters set:

```
Route::get('test', function()
{
$params = ['method' => 'POST', 'user_id' => '2'];

$request = Request::create('/api/{method}/{user_id}', strtoupper($params['method']), $params);

Route::dispatch($request)->getContent();
});

Route::post('api', function()
{
dd(Request::instance()->query->all());
});
```

Discovered it from a SO question I was trying to answer: http://stackoverflow.com/questions/26084628/laravel-requestinstance-returns-original-instance#26084628