1
- <?php
2
1
2
+ <?php
3
3
return [
4
-
5
- /*
6
- |--------------------------------------------------------------------------
7
- | Default Authentication Driver
8
- |--------------------------------------------------------------------------
9
- |
10
- | This option controls the authentication driver that will be utilized.
11
- | This driver manages the retrieval and authentication of the users
12
- | attempting to get access to protected areas of your application.
13
- |
14
- | Supported: "database", "eloquent"
15
- |
16
- */
17
-
18
- 'driver ' => 'eloquent ' ,
19
-
20
- /*
21
- |--------------------------------------------------------------------------
22
- | Authentication Model
23
- |--------------------------------------------------------------------------
24
- |
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
27
- | is often just the "User" model but you may use whatever you like.
28
- |
29
- */
30
-
31
- 'model ' => 'App\User ' ,
32
-
33
- /*
34
- |--------------------------------------------------------------------------
35
- | Authentication Table
36
- |--------------------------------------------------------------------------
37
- |
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
40
- | default value but you may easily change it to any table you like.
41
- |
42
- */
43
-
44
- 'table ' => 'users ' ,
45
-
46
- /*
47
- |--------------------------------------------------------------------------
48
- | Password Reset Settings
49
- |--------------------------------------------------------------------------
50
- |
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
53
- | table that maintains all of the reset tokens for your application.
54
- |
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
57
- | they have less time to be guessed. You may change this as needed.
58
- |
59
- */
60
-
61
- 'password ' => [
62
- 'email ' => 'emails.password ' ,
63
- 'table ' => 'password_resets ' ,
64
- 'expire ' => 60 ,
65
- ],
66
-
67
- ];
4
+ /*
5
+ |--------------------------------------------------------------------------
6
+ | Authentication Defaults
7
+ |--------------------------------------------------------------------------
8
+ |
9
+ | This option controls the default authentication "guard" and password
10
+ | reset options for your application. You may change these defaults
11
+ | as required, but they're a perfect start for most applications.
12
+ |
13
+ */
14
+ 'defaults ' => [
15
+ 'guard ' => 'web ' ,
16
+ 'passwords ' => 'users ' ,
17
+ ],
18
+ /*
19
+ |--------------------------------------------------------------------------
20
+ | Authentication Guards
21
+ |--------------------------------------------------------------------------
22
+ |
23
+ | Next, you may define every authentication guard for your application.
24
+ | Of course, a great default configuration has been defined for you
25
+ | here which uses session storage and the Eloquent user provider.
26
+ |
27
+ | All authentication drivers have a user provider. This defines how the
28
+ | users are actually retrieved out of your database or other storage
29
+ | mechanisms used by this application to persist your user's data.
30
+ |
31
+ | Supported: "session", "token"
32
+ |
33
+ */
34
+ 'guards ' => [
35
+ 'web ' => [
36
+ 'driver ' => 'session ' ,
37
+ 'provider ' => 'users ' ,
38
+ ],
39
+ 'api ' => [
40
+ 'driver ' => 'token ' ,
41
+ 'provider ' => 'users ' ,
42
+ ],
43
+ ],
44
+ /*
45
+ |--------------------------------------------------------------------------
46
+ | User Providers
47
+ |--------------------------------------------------------------------------
48
+ |
49
+ | All authentication drivers have a user provider. This defines how the
50
+ | users are actually retrieved out of your database or other storage
51
+ | mechanisms used by this application to persist your user's data.
52
+ |
53
+ | If you have multiple user tables or models you may configure multiple
54
+ | sources which represent each model / table. These sources may then
55
+ | be assigned to any extra authentication guards you have defined.
56
+ |
57
+ | Supported: "database", "eloquent"
58
+ |
59
+ */
60
+ 'providers ' => [
61
+ 'users ' => [
62
+ 'driver ' => 'eloquent ' ,
63
+ 'model ' => App \User::class,
64
+ ],
65
+ // 'users' => [
66
+ // 'driver' => 'database',
67
+ // 'table' => 'users',
68
+ // ],
69
+ ],
70
+ /*
71
+ |--------------------------------------------------------------------------
72
+ | Resetting Passwords
73
+ |--------------------------------------------------------------------------
74
+ |
75
+ | Here you may set the options for resetting passwords including the view
76
+ | that is your password reset e-mail. You may also set the name of the
77
+ | table that maintains all of the reset tokens for your application.
78
+ |
79
+ | You may specify multiple password reset configurations if you have more
80
+ | than one user table or model in the application and you want to have
81
+ | separate password reset settings based on the specific user types.
82
+ |
83
+ | The expire time is the number of minutes that the reset token should be
84
+ | considered valid. This security feature keeps tokens short-lived so
85
+ | they have less time to be guessed. You may change this as needed.
86
+ |
87
+ */
88
+ 'passwords ' => [
89
+ 'users ' => [
90
+ 'provider ' => 'users ' ,
91
+ 'email ' => 'auth.emails.password ' ,
92
+ 'table ' => 'password_resets ' ,
93
+ 'expire ' => 60 ,
94
+ ],
95
+ ],
96
+ ];
0 commit comments