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
@@ -129,7 +133,8 @@ one yet or have not planned to do it you can use `database` instead.
129
133
130
134
It means after migrating, a table will be created which your application needs to store verification tokens.
131
135
132
-
> If you’re using another column name for `mobile` phone or even `otp_tokens` table, you can customize their values in config file:
136
+
> If you’re using another column name for `mobile` phone or even `otp_tokens` table, you can customize their values in
137
+
> config file:
133
138
134
139
```php
135
140
// config/otp.php
@@ -156,10 +161,13 @@ All right! Now you should migrate the database:
156
161
php artisan migrate
157
162
```
158
163
159
-
> **Note:** When you are using OTP to login user, consider all columns must be nullable except for the `mobile` column. Because, after verifying OTP, a user record will be created if the user does not exist.
164
+
> **Note:** When you are using OTP to login user, consider all columns must be nullable except for the `mobile` column.
165
+
> Because, after verifying OTP, a user record will be created if the user does not exist.
160
166
161
167
### Token Life Time
162
-
You can specify an OTP `token_lifetime`, ensuring that once an OTP token is sent to the user, no new OTP token will be generated or sent until the current token has expired.
168
+
169
+
You can specify an OTP `token_lifetime`, ensuring that once an OTP token is sent to the user, no new OTP token will be
170
+
generated or sent until the current token has expired.
163
171
164
172
```php
165
173
// config/otp.php
@@ -175,6 +183,7 @@ return [
175
183
//...
176
184
];
177
185
```
186
+
178
187
### User providers
179
188
180
189
You may wish to use the OTP for variant users. Laravel OTP allows you to define and manage many user providers that you
@@ -207,7 +216,8 @@ return [
207
216
];
208
217
```
209
218
210
-
> **Note:** You may also change the default repository and replace your own repository. however, every repository must implement `Fouladgar\OTP\Contracts\NotifiableRepositoryInterface` interface.
219
+
> **Note:** You may also change the default repository and replace your own repository. however, every repository must
0 commit comments