generated from worksome/package-skeleton-laravel
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mfa.php
62 lines (43 loc) · 1.34 KB
/
mfa.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?php
declare(strict_types=1);
use Worksome\MultiFactorAuth\Enums\Channel;
return [
/**
* The user model to support multifactor authentication.
*/
'user' => \App\Models\User::class,
/**
* The drivers that should be used for each channel.
*
* @see \Worksome\MultiFactorAuth\Enums\Channel for the available channels.
*/
'channels' => [
Channel::Email->value => [
'driver' => env('MFA_EMAIL_DRIVER', 'null'),
],
Channel::Sms->value => [
'driver' => env('MFA_SMS_DRIVER', 'null'),
],
Channel::Totp->value => [
'driver' => env('MFA_TOTP_DRIVER', 'null'),
],
],
/**
* The drivers that are available to use, and their configurations.
*/
'drivers' => [
'twilio_verify' => [
'account_id' => env('TWILIO_VERIFY_ACCOUNT_ID'),
'token' => env('TWILIO_VERIFY_AUTH_TOKEN'),
'service_id' => env('TWILIO_VERIFY_SERVICE_ID'),
],
],
'features' => [
/**
* Laravel's about command provides useful information regarding the state of
* your Laravel application. If `about_command` is set to true, we will
* show useful information about exchange in about command output.
*/
'about_command' => true,
]
];