Skip to content

Commit fe88a4e

Browse files
committed
Documentation
1 parent 492ebda commit fe88a4e

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -187,13 +187,15 @@ No user found for the given e-mail adresse.
187187

188188
### Error View
189189

190-
Create a view for the default verification error route `/verification/error` at
191-
`resources/views/errors/user-verification.blade.php`. If an error occurs, the
192-
user will be redirected to this route and this view will be rendered. **You
193-
must implement and customize this view to your needs.** For instance you may
194-
wish to display a short message saying that something went wrong and then ask
195-
for the user's e-mail again and start the process from scratch (generate, send,
196-
verify, ...).
190+
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.
191+
192+
**You may customize this view to your needs.** To do so first publish the view to your resources folder:
193+
194+
```
195+
php artisan vendor:publish --tag=laravel-user-verification-views
196+
```
197+
198+
The view will be available in the `resources/views/vendor/laravel-user-verification/` directory and can be customized.
197199

198200
## Usage
199201

@@ -292,7 +294,7 @@ Where to redirect after a successful verification token verification.
292294

293295
Where to redirect after a failing token verification.
294296

295-
* `$verificationErrorView = 'errors.user-verification';`
297+
* `$verificationErrorView = 'laravel-user-verification::user-verification';
296298

297299
Name of the view returned by the getVerificationError method.
298300

@@ -348,8 +350,6 @@ Edit the `app\Http\Controllers\Auth\AuthController.php` file.
348350
`VerifiesUsers` trait. (not mandatory)
349351
- [ ] Overwrite the default error view name used by the `getVerificationError()` method
350352
(not mandatory)
351-
- [x] Create the verification error view at
352-
`resources/views/errors/user-verification.blade.php` (mandatory)
353353
- [ ] Overwrite the contructor (not mandatory)
354354
- [x] Overwrite the `postRegister()`/`register()` method depending on the
355355
Laravel version you use (mandatory)

0 commit comments

Comments
 (0)