Skip to content

Commit fca9f71

Browse files
committed
udpate docs
1 parent a7626fd commit fca9f71

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

verification.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,13 @@ Sometimes a user may misplace or accidentally delete the email address verificat
108108
<a name="protecting-routes"></a>
109109
### Protecting Routes
110110

111-
[Route middleware](/docs/{{version}}/middleware) can be used to only allow verified users to access a given route. Laravel ships with a `verified` middleware, which is defined at `Illuminate\Auth\Middleware\EnsureEmailIsVerified`. Since this middleware is already registered in your application's HTTP kernel, all you need to do is attach the middleware to a route definition:
111+
[Route middleware](/docs/{{version}}/middleware) can be used to only allow verified users to access a given route. Laravel ships with a `verified` middleware, which references the `Illuminate\Auth\Middleware\EnsureEmailIsVerified` class. Since this middleware is already registered in your application's HTTP kernel, all you need to do is attach the middleware to a route definition:
112112

113113
Route::get('profile', function () {
114114
// Only verified users may enter...
115115
})->middleware('verified');
116116

117-
If an unverified user attempts to access a route that has been assigned this middleware, they will automatically be redirected to the `verification.notice` named route.
117+
If an unverified user attempts to access a route that has been assigned this middleware, they will automatically be redirected to the `verification.notice` [named route](/docs/{{version}}/routing#named-routes).
118118

119119
<a name="events"></a>
120120
## Events

0 commit comments

Comments
 (0)