1 <?php |
1 <?php |
2 |
2 |
3 return [ |
3 return [ |
4 |
4 |
5 /* |
5 /* |
6 |-------------------------------------------------------------------------- |
6 |-------------------------------------------------------------------------- |
7 | Default Authentication Driver |
7 | Default Authentication Driver |
8 |-------------------------------------------------------------------------- |
8 |-------------------------------------------------------------------------- |
9 | |
9 | |
10 | This option controls the authentication driver that will be utilized. |
10 | This option controls the authentication driver that will be utilized. |
11 | This driver manages the retrieval and authentication of the users |
11 | This driver manages the retrieval and authentication of the users |
12 | attempting to get access to protected areas of your application. |
12 | attempting to get access to protected areas of your application. |
13 | |
13 | |
14 | Supported: "database", "eloquent" |
14 | Supported: "database", "eloquent" |
15 | |
15 | |
16 */ |
16 */ |
17 |
17 |
18 'driver' => 'eloquent', |
18 'driver' => 'eloquent', |
19 |
19 |
20 /* |
20 /* |
21 |-------------------------------------------------------------------------- |
21 |-------------------------------------------------------------------------- |
22 | Authentication Model |
22 | Authentication Model |
23 |-------------------------------------------------------------------------- |
23 |-------------------------------------------------------------------------- |
24 | |
24 | |
25 | When using the "Eloquent" authentication driver, we need to know which |
25 | When using the "Eloquent" authentication driver, we need to know which |
26 | Eloquent model should be used to retrieve your users. Of course, it |
26 | Eloquent model should be used to retrieve your users. Of course, it |
27 | is often just the "User" model but you may use whatever you like. |
27 | is often just the "User" model but you may use whatever you like. |
28 | |
28 | |
29 */ |
29 */ |
30 |
30 |
31 'model' => 'App\User', |
31 'model' => 'CorpusParole\User', |
32 |
32 |
33 /* |
33 /* |
34 |-------------------------------------------------------------------------- |
34 |-------------------------------------------------------------------------- |
35 | Authentication Table |
35 | Authentication Table |
36 |-------------------------------------------------------------------------- |
36 |-------------------------------------------------------------------------- |
37 | |
37 | |
38 | When using the "Database" authentication driver, we need to know which |
38 | When using the "Database" authentication driver, we need to know which |
39 | table should be used to retrieve your users. We have chosen a basic |
39 | table should be used to retrieve your users. We have chosen a basic |
40 | default value but you may easily change it to any table you like. |
40 | default value but you may easily change it to any table you like. |
41 | |
41 | |
42 */ |
42 */ |
43 |
43 |
44 'table' => 'users', |
44 'table' => 'users', |
45 |
45 |
46 /* |
46 /* |
47 |-------------------------------------------------------------------------- |
47 |-------------------------------------------------------------------------- |
48 | Password Reset Settings |
48 | Password Reset Settings |
49 |-------------------------------------------------------------------------- |
49 |-------------------------------------------------------------------------- |
50 | |
50 | |
51 | Here you may set the options for resetting passwords including the view |
51 | Here you may set the options for resetting passwords including the view |
52 | that is your password reset e-mail. You can also set the name of the |
52 | that is your password reset e-mail. You can also set the name of the |
53 | table that maintains all of the reset tokens for your application. |
53 | table that maintains all of the reset tokens for your application. |
54 | |
54 | |
55 | The expire time is the number of minutes that the reset token should be |
55 | The expire time is the number of minutes that the reset token should be |
56 | considered valid. This security feature keeps tokens short-lived so |
56 | considered valid. This security feature keeps tokens short-lived so |
57 | they have less time to be guessed. You may change this as needed. |
57 | they have less time to be guessed. You may change this as needed. |
58 | |
58 | |
59 */ |
59 */ |
60 |
60 |
61 'password' => [ |
61 'password' => [ |
62 'email' => 'emails.password', |
62 'email' => 'emails.password', |
63 'table' => 'password_resets', |
63 'table' => 'password_resets', |
64 'expire' => 60, |
64 'expire' => 60, |
65 ], |
65 ], |
66 |
66 |
67 ]; |
67 ]; |