Merge pull request #1132 from cmenke/master
Add Routing Wildcard '(:all)' to Documentation
This commit is contained in:
commit
50b10fca95
|
@ -78,6 +78,13 @@ #### Allowing a URI segment to be any alpha-numeric string:
|
||||||
//
|
//
|
||||||
});
|
});
|
||||||
|
|
||||||
|
#### Catching the remaining URI without limitations:
|
||||||
|
|
||||||
|
Route::get('files/(:all)', function($path)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
});
|
||||||
|
|
||||||
#### Allowing a URI segment to be optional:
|
#### Allowing a URI segment to be optional:
|
||||||
|
|
||||||
Route::get('page/(:any?)', function($page = 'index')
|
Route::get('page/(:any?)', function($page = 'index')
|
||||||
|
|
Loading…
Reference in New Issue