Merge pull request #1132 from cmenke/master

Add Routing Wildcard '(:all)' to Documentation
This commit is contained in:
Taylor Otwell
2012-09-01 17:56:31 -07:00

View File

@@ -78,6 +78,13 @@ In the following example the first parameter is the route that you're "registeri
//
});
#### Catching the remaining URI without limitations:
Route::get('files/(:all)', function($path)
{
//
});
#### Allowing a URI segment to be optional:
Route::get('page/(:any?)', function($page = 'index')