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
Copy file name to clipboardExpand all lines: README.md
+17-27Lines changed: 17 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,19 +43,19 @@ Or run the following command:
43
43
composer require jrean/laravel-user-verification
44
44
45
45
46
-
### Add the Service Provider
46
+
### Add the Service Provider & Facade/Alias
47
47
48
-
Once Larvel User Verification is installed, you need to register the service provider.
49
-
50
-
Open up `config/app.php` and add the following to the `providers` key:
48
+
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`.
@@ -161,7 +161,7 @@ Here is a sample e-mail view content to get you started with:
161
161
query string with the user's e-mail as parameter.**
162
162
163
163
```
164
-
Click here to verify your account: <a href="{{ $link = url('verification', $user->verification_token) . '?email=' . urlencode($user->email) }}"> {{ $link }}</a>
164
+
Click here to verify your account: <a href="{{ $link = route('email-verification.check', $user->verification_token) . '?email=' . urlencode($user->email) }}"> {{ $link }}</a>
165
165
```
166
166
167
167
## ERRORS
@@ -189,7 +189,7 @@ No user found for the given e-mail adresse.
189
189
190
190
### Error View
191
191
192
-
By default the `user-verification.blade.php` view will be loaded for the verification error route `/verification/error`. If an error occurs, the user will be redirected to this route and this view will be rendered.
192
+
By default the `user-verification.blade.php` view will be loaded for the verification error route `/email-verification/error`. If an error occurs, the user will be redirected to this route and this view will be rendered.
193
193
194
194
**You may customize this view to your needs.** To do so first publish the view to your resources folder:
195
195
@@ -203,12 +203,11 @@ The view will be available in the `resources/views/vendor/laravel-user-verificat
203
203
204
204
### Routes
205
205
206
-
Add the two (2) default routes to the `routes/web.php` file. Routes are
207
-
customizable.
206
+
By default this packages ships with two routes, if you want to change them, you can simply define your own routes. Make sure you added the packages service provider **before** Laravels `RouteServiceProvider`, otherwise you can not overwrite the routes.
The `generate` method will generate a new token for the given user and change the `verified` column to 0. The `send` method will send a new e-mail to the user.
0 commit comments