[5.8] Use similar method as Laravel UrlGenerator::formatParameters().
[5.8] Use similar method as Laravel UrlGenerator::formatParameters().

Signed-off-by: Mior Muhammad Zaki <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>

laravel/lumen-framework,orchestral/lumen,crynobone/lumen-framework