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
{{ message }}
This repository was archived by the owner on Apr 19, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+2-8Lines changed: 2 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,11 +13,11 @@ This is a two-factor authentication package for *Laravel 5.4*. It is heavily ins
13
13
```
14
14
composer require michaeldzjap/twofactor-auth
15
15
```
16
-
If you want to use MessageBird Verify as the two-factor authentication provider (default) then you also need to install the [MessageBird PHP api](https://github.com/messagebird/php-rest-api):
16
+
If you want to use MessageBird Verify as the two-factor authentication provider then you also need to install the [MessageBird PHP api](https://github.com/messagebird/php-rest-api):
17
17
```
18
18
composer require messagebird/php-rest-api
19
19
```
20
-
and don't forget to add your `MESSAGEBIRD_ACCESS_KEY`variable to the `.env`.
20
+
and don't forget to add your `MESSAGEBIRD_ACCESS_KEY`and `TWO_FACTOR_AUTH_DRIVER=messagebird` variables to the`.env`. If you instead wish to use the `'null'` driver (default) then do **NOT** define the `TWO_FACTOR_AUTH_DRIVER` variable in your`.env`.
21
21
22
22
2 Add the service provider to the `'providers'` array in `config/app.php`:
23
23
```php
@@ -47,12 +47,6 @@ class User extends Authenticatable
47
47
```
48
48
Optionally, you might want to add `'mobile'` to your `$fillable` array.
49
49
50
-
6 Add the following `.env` var:
51
-
```
52
-
TWO_FACTOR_AUTH_DRIVER=messagebird
53
-
```
54
-
Here it is assumed you want to use the MessageBird driver.
55
-
56
50
## Changes to the Login Process
57
51
The following two-factor authentication routes will be added automatically:
0 commit comments