You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Once Larvel User Verification is installed, you need to register the service provider in `config/app.php`. Make sure to add the following line **above** the `RouteServiceProvider`.
48
+
Once Larvel User Verification is installed, you need to register the service provider in `config/app.php`.
49
+
Make sure to add the following line **above** the `RouteServiceProvider`.
This package ships with an optional middleware throwing a `UserNotVerifiedException`. You can setup the desired behaviour, for example a redirect to a specific page, in the `app\Exceptions\Handler.php`. Please refer to the [Laravel Documentation](https://laravel.com/docs/master/errors#the-exception-handler) to learn more about how to work with the exception handler.
100
+
This package provides an optional middleware throwing a `UserNotVerifiedException`.
101
+
Please refer to the [Laravel Documentation](https://laravel.com/docs/master/errors#the-exception-handler) to learn more about how to work with the exception handler.
97
102
98
-
To register the default middleware add the following to the `$routeMiddleware` array within the `app/Http/Kernel.php` file:
103
+
To register the default middleware add the following lines to the `$routeMiddleware` array within the `app/Http/Kernel.php` file:
99
104
100
105
```php
101
106
protected $routeMiddleware = [
@@ -107,7 +112,7 @@ Apply the middleware on your routes:
107
112
108
113
```php
109
114
Route::group(['middleware' => ['web', 'isVerified']], function () {
110
-
…
115
+
// …
111
116
```
112
117
113
118
### Custom middleware
@@ -122,11 +127,9 @@ For more details about middlewares, please refer to the [Laravel Documentation](
122
127
123
128
## E-MAIL
124
129
125
-
As of this 4.0 release, the markdown support is not yet available.
126
-
127
130
This package provides a method to send an e-mail with a link containing the verification token.
0 commit comments