author | ymh <ymh.work@gmail.com> |
Wed, 09 Nov 2016 15:05:41 +0100 | |
changeset 406 | cf0f23803a53 |
parent 27 | a2342f26c9de |
permissions | -rw-r--r-- |
1
01a844d292ac
dev environment + first skeleton for bo
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
1 |
<?php |
01a844d292ac
dev environment + first skeleton for bo
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
2 |
return [ |
01a844d292ac
dev environment + first skeleton for bo
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
3 |
|
2
00e2916104fe
Migrate to php 5.6 + Laravel 5.1 + add phpunit test
ymh <ymh.work@gmail.com>
parents:
1
diff
changeset
|
4 |
/* |
00e2916104fe
Migrate to php 5.6 + Laravel 5.1 + add phpunit test
ymh <ymh.work@gmail.com>
parents:
1
diff
changeset
|
5 |
|-------------------------------------------------------------------------- |
27 | 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 |
||
15 |
'defaults' => [ |
|
16 |
'guard' => 'web', |
|
17 |
'passwords' => 'users', |
|
18 |
], |
|
19 |
||
20 |
/* |
|
21 |
|-------------------------------------------------------------------------- |
|
22 |
| Authentication Guards |
|
2
00e2916104fe
Migrate to php 5.6 + Laravel 5.1 + add phpunit test
ymh <ymh.work@gmail.com>
parents:
1
diff
changeset
|
23 |
|-------------------------------------------------------------------------- |
00e2916104fe
Migrate to php 5.6 + Laravel 5.1 + add phpunit test
ymh <ymh.work@gmail.com>
parents:
1
diff
changeset
|
24 |
| |
27 | 25 |
| Next, you may define every authentication guard for your application. |
26 |
| Of course, a great default configuration has been defined for you |
|
27 |
| here which uses session storage and the Eloquent user provider. |
|
28 |
| |
|
29 |
| All authentication drivers have a user provider. This defines how the |
|
30 |
| users are actually retrieved out of your database or other storage |
|
31 |
| mechanisms used by this application to persist your user's data. |
|
32 |
| |
|
33 |
| Supported: "session", "token" |
|
34 |
| |
|
35 |
*/ |
|
36 |
||
37 |
'guards' => [ |
|
38 |
'web' => [ |
|
39 |
'driver' => 'session', |
|
40 |
'provider' => 'users', |
|
41 |
], |
|
42 |
||
43 |
'api' => [ |
|
44 |
'driver' => 'token', |
|
45 |
'provider' => 'users', |
|
46 |
], |
|
47 |
], |
|
48 |
||
49 |
/* |
|
50 |
|-------------------------------------------------------------------------- |
|
51 |
| User Providers |
|
52 |
|-------------------------------------------------------------------------- |
|
53 |
| |
|
54 |
| All authentication drivers have a user provider. This defines how the |
|
55 |
| users are actually retrieved out of your database or other storage |
|
56 |
| mechanisms used by this application to persist your user's data. |
|
57 |
| |
|
58 |
| If you have multiple user tables or models you may configure multiple |
|
59 |
| sources which represent each model / table. These sources may then |
|
60 |
| be assigned to any extra authentication guards you have defined. |
|
2
00e2916104fe
Migrate to php 5.6 + Laravel 5.1 + add phpunit test
ymh <ymh.work@gmail.com>
parents:
1
diff
changeset
|
61 |
| |
00e2916104fe
Migrate to php 5.6 + Laravel 5.1 + add phpunit test
ymh <ymh.work@gmail.com>
parents:
1
diff
changeset
|
62 |
| Supported: "database", "eloquent" |
00e2916104fe
Migrate to php 5.6 + Laravel 5.1 + add phpunit test
ymh <ymh.work@gmail.com>
parents:
1
diff
changeset
|
63 |
| |
00e2916104fe
Migrate to php 5.6 + Laravel 5.1 + add phpunit test
ymh <ymh.work@gmail.com>
parents:
1
diff
changeset
|
64 |
*/ |
1
01a844d292ac
dev environment + first skeleton for bo
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
65 |
|
27 | 66 |
'providers' => [ |
67 |
'users' => [ |
|
68 |
'driver' => 'eloquent', |
|
69 |
'model' => CorpusParole\User::class, |
|
70 |
], |
|
1
01a844d292ac
dev environment + first skeleton for bo
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
71 |
|
27 | 72 |
// 'users' => [ |
73 |
// 'driver' => 'database', |
|
74 |
// 'table' => 'users', |
|
75 |
// ], |
|
76 |
], |
|
1
01a844d292ac
dev environment + first skeleton for bo
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
77 |
|
2
00e2916104fe
Migrate to php 5.6 + Laravel 5.1 + add phpunit test
ymh <ymh.work@gmail.com>
parents:
1
diff
changeset
|
78 |
/* |
00e2916104fe
Migrate to php 5.6 + Laravel 5.1 + add phpunit test
ymh <ymh.work@gmail.com>
parents:
1
diff
changeset
|
79 |
|-------------------------------------------------------------------------- |
27 | 80 |
| Resetting Passwords |
2
00e2916104fe
Migrate to php 5.6 + Laravel 5.1 + add phpunit test
ymh <ymh.work@gmail.com>
parents:
1
diff
changeset
|
81 |
|-------------------------------------------------------------------------- |
00e2916104fe
Migrate to php 5.6 + Laravel 5.1 + add phpunit test
ymh <ymh.work@gmail.com>
parents:
1
diff
changeset
|
82 |
| |
00e2916104fe
Migrate to php 5.6 + Laravel 5.1 + add phpunit test
ymh <ymh.work@gmail.com>
parents:
1
diff
changeset
|
83 |
| Here you may set the options for resetting passwords including the view |
27 | 84 |
| that is your password reset e-mail. You may also set the name of the |
2
00e2916104fe
Migrate to php 5.6 + Laravel 5.1 + add phpunit test
ymh <ymh.work@gmail.com>
parents:
1
diff
changeset
|
85 |
| table that maintains all of the reset tokens for your application. |
00e2916104fe
Migrate to php 5.6 + Laravel 5.1 + add phpunit test
ymh <ymh.work@gmail.com>
parents:
1
diff
changeset
|
86 |
| |
27 | 87 |
| You may specify multiple password reset configurations if you have more |
88 |
| than one user table or model in the application and you want to have |
|
89 |
| separate password reset settings based on the specific user types. |
|
90 |
| |
|
2
00e2916104fe
Migrate to php 5.6 + Laravel 5.1 + add phpunit test
ymh <ymh.work@gmail.com>
parents:
1
diff
changeset
|
91 |
| The expire time is the number of minutes that the reset token should be |
00e2916104fe
Migrate to php 5.6 + Laravel 5.1 + add phpunit test
ymh <ymh.work@gmail.com>
parents:
1
diff
changeset
|
92 |
| considered valid. This security feature keeps tokens short-lived so |
00e2916104fe
Migrate to php 5.6 + Laravel 5.1 + add phpunit test
ymh <ymh.work@gmail.com>
parents:
1
diff
changeset
|
93 |
| they have less time to be guessed. You may change this as needed. |
00e2916104fe
Migrate to php 5.6 + Laravel 5.1 + add phpunit test
ymh <ymh.work@gmail.com>
parents:
1
diff
changeset
|
94 |
| |
00e2916104fe
Migrate to php 5.6 + Laravel 5.1 + add phpunit test
ymh <ymh.work@gmail.com>
parents:
1
diff
changeset
|
95 |
*/ |
1
01a844d292ac
dev environment + first skeleton for bo
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
96 |
|
27 | 97 |
'passwords' => [ |
98 |
'users' => [ |
|
99 |
'provider' => 'users', |
|
100 |
'email' => 'auth.emails.password', |
|
101 |
'table' => 'password_resets', |
|
102 |
'expire' => 60, |
|
103 |
], |
|
2
00e2916104fe
Migrate to php 5.6 + Laravel 5.1 + add phpunit test
ymh <ymh.work@gmail.com>
parents:
1
diff
changeset
|
104 |
], |
1
01a844d292ac
dev environment + first skeleton for bo
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
105 |
|
01a844d292ac
dev environment + first skeleton for bo
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
106 |
]; |