illuminate/routing — pull request #10 by cmenke (2012-12-01 02:03:35+00:00)
Title: Added easier Wildcard Requirements to Routing Pattern

The overhauled Routing Class is great, but in my case misses the ability to quickly determine the segment type. So instead if setting the requirements like this:
```php
Route::get('user/{id}', function($id) { return $id })->setRequirement('id', '\d+');
```

this pull request enables a shorthand to limit character sets of URI segments to
* any digit (e.g. /{id:num})
* any alphanumeric string (e.g. /{string:any}) - this might be somewhat redundant to simply using {string}, but i left it in for old habits sake
* or catching the remaining URI without limitations (e.g. /{path:all})

in the style of Laravel 3:
```php
Route::get('/foo/{id:num}', function($id) { return $id });
```

Combination with the optional Parameter Marker '?' is also possible, of course.
```php
Route::get('/foo/{id:num?}', function($id) { return $id });
```