Skip to content
This repository was archived by the owner on Apr 19, 2025. It is now read-only.

Commit 923bf8f

Browse files
authored
Update README.md
1 parent f114144 commit 923bf8f

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

README.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ This is a two-factor authentication package for *Laravel 5.4*. It is heavily ins
1313
```
1414
composer require michaeldzjap/twofactor-auth
1515
```
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):
1717
```
1818
composer require messagebird/php-rest-api
1919
```
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`.
2121

2222
2 Add the service provider to the `'providers'` array in `config/app.php`:
2323
```php
@@ -47,12 +47,6 @@ class User extends Authenticatable
4747
```
4848
Optionally, you might want to add `'mobile'` to your `$fillable` array.
4949

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-
5650
## Changes to the Login Process
5751
The following two-factor authentication routes will be added automatically:
5852
```php

0 commit comments

Comments
 (0)