With CodeIgniter you can do something like this:
route['foo/(:any)'] = 'controller/$1';
This way, you create a pattern matching, using the last part of the URI as a function name for the controller.
So, 'foo/bar' will be routed to the controller 'controller' and the function executed will be 'bar'.
Question: can I do the same with Laravel 4? I've searched all over the place but couldn't find an answer. Tried to test it following CI's idea but had no success. Any help? Thanks!