Php 在Laravel 4中使用变量复制Restful url

Php 在Laravel 4中使用变量复制Restful url,php,laravel,laravel-4,restful-url,Php,Laravel,Laravel 4,Restful Url,有没有办法在Laravel4中复制RESTfulURL,并将变量传递给它,以便在浏览器中模拟GET进行测试 当我这样做时: http://172.17.0.2/vevey/pagseguro/notification/notificationCode=713B60-785F465F4619-DAA4BD3F89D4-1E090D 我明白了: 当它应该只是 'notificationCode' => string (56) "713B60-785F465F4619-DAA4BD3F89D

有没有办法在Laravel4中复制RESTfulURL,并将变量传递给它,以便在浏览器中模拟GET进行测试

当我这样做时:

http://172.17.0.2/vevey/pagseguro/notification/notificationCode=713B60-785F465F4619-DAA4BD3F89D4-1E090D
我明白了:

当它应该只是

'notificationCode' => string (56) "713B60-785F465F4619-DAA4BD3F89D4-1E090D"

为什么不使用这样的路线:

Route::get('.../notification/notificationCode/{code}', ...)->where('code', '[a-fA-F0-9\-]');

然后抓住控制器函数中的
{code}
参数?

并不是我问题的答案。这不是一个特定的问题,对于测试purpuses,我只需要知道如何手动创建一个URL来重现Laravel(或Ruby)在引擎盖下访问参数化路由所做的事情。尝试了它的许多变体:。谢谢!:)