Skip to content

Commit 4e5289b

Browse files
committed
Merge pull request laravel#1202 from lifesign/patch-1
rename before method to boot
2 parents 4e268e8 + 1e12427 commit 4e5289b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ Of course, you can capture segments of the request URI within your route:
159159

160160
#### Defining Global Patterns
161161

162-
If you would like a route parameter to always be constrained by a given regular expression, you may use the `pattern` method. You should define these patterns in the `before` method of your `RouteServiceProvider`:
162+
If you would like a route parameter to always be constrained by a given regular expression, you may use the `pattern` method. You should define these patterns in the `boot` method of your `RouteServiceProvider`:
163163

164164
$router->pattern('id', '[0-9]+');
165165

0 commit comments

Comments
 (0)