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
+39Lines changed: 39 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,12 +55,51 @@ At least you need to migrate the `%_create_pending_user_emails.php` migration.
55
55
php artisan migrate
56
56
```
57
57
58
+
## Configuration
59
+
60
+
The configuration can be made in the config file `verify-email` or in the published files. All config values have there used file path.
61
+
62
+
For the verification url the `route.for` is required or go to `app/Traits/Auth/MustVerifyNewEmail` and change it in function `verificationUrl`. When calling the varification link the `route.after` is required to redirect or go to `app/Http/Controllers/Auth/VerifyNewEmailController` and change it in function `__invoke`.
63
+
64
+
```php
65
+
'route' => [
66
+
'for' => 'verification.verify',
67
+
'after' => 'home',
68
+
],
69
+
```
70
+
71
+
You can decide if the user's verification status resets on every email change or go to `app/Traits/Auth/MustVerifyNewEmail` and change it in function `newEmail`.
72
+
73
+
```php
74
+
'reset_verification' => true,
75
+
```
76
+
77
+
You can change the active time of the verification link with a number in minutes or go to `app/Traits/Auth/MustVerifyNewEmail` and change it in function `verificationUrl`.
78
+
79
+
```php
80
+
'expire' => 60,
81
+
```
82
+
58
83
## Usage
59
84
85
+
When you want to change to user's email you can call the user function `syncEmail`.
0 commit comments