Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
UserAdminV2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
庄欣
UserAdminV2
Commits
cec583aa
Commit
cec583aa
authored
Jul 14, 2011
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Edited readme.md via GitHub
parent
ecdd559a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
readme.md
+6
-6
No files found.
readme.md
View file @
cec583aa
...
...
@@ -129,7 +129,7 @@ After setting up HTTP rewriting, you should set the **index** configuration opti
## Defining Routes
-
[
The Basics
](
#routes-basics
)
-
[
Route URI
Parameters
](
#routes-parameter
s
)
-
[
Route URI
Wildcards
](
#routes-wildcard
s
)
-
[
Route Filters
](
#route-filters
)
-
[
Named Routes
](
#routes-named
)
-
[
Organizing Routes
](
#routes-folder
)
...
...
@@ -162,20 +162,20 @@ You can easily define a route to handle requests to more than one URI. Just use
[
Back To Top
](
#top
)
<a
name=
"routes-
parameter
s"
></a>
### Route URI
Parameter
s
<a
name=
"routes-
wildcard
s"
></a>
### Route URI
Wildcard
s
Laravel makes passing URI parameters to your route functions a breeze using the
**(:num)**
and
**(:any)**
place-holder
s:
You can pass URI segments to your route functions using the
**(:num)**
and
**(:any)**
wildcard
s:
'PUT /user/(:num)' => function($id) {}
'GET /user/(:any)/edit' => function($username) {}
Sometimes you may wish to make a parameter optional. You can do so by placing a
**?**
in parameter
:
You may make segments optional by placing a
**?**
in the wildcard
:
'GET /branch/(:any?)' => function($branch = 'master') {}
If you need more power and precision
(or just want to be extra nerdy)
, you can even use regular expressions:
If you need more power and precision, you can even use regular expressions:
'GET /product/([0-9]+)' => function($id) {}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment