laravel/laravel — pull request #670 by kbanman (2012-05-12 05:41:37+00:00)
Title: Add support for non-string parameters in controller routes

I perform HMVC calls in my application like so:

$route = new Route('GET',
'customers/'.$customer->id.'/comments',
array('uses' => 'controller@method'),
array($customer_object));

But currently using an object causes issues when laravel tries to do a str_replace() on them. This patch excludes non-string parameters from being subjected to back-reference replacements.

Btw, it would be super nice to have helper method to facilitate calls like the above. :)

Signed-off-by: Kelly Banman