Commit ff35b10a authored by Taylor Otwell's avatar Taylor Otwell

working on config

parent b0160f5e
...@@ -4,31 +4,41 @@ return [ ...@@ -4,31 +4,41 @@ return [
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| Authentication Drivers | Authentication Defaults
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| |
| Here you may define every authentication driver for your application. | This option controls the default authentication "guard" and password
| Of course, a default and working configuration is already defined | reset options for your application. You may change these defaults
| here but you are free to define additional drivers when needed. | as required, but they're a perfect start for most applications.
| |
| The "default_guard" option is the default driver which is used while */
| utilizing the "Auth" facade within your application. But, you may
| access every other auth driver via the facade's "guard" method. 'defaults' => [
'guard' => 'web',
'passwords' => 'users',
],
/*
|--------------------------------------------------------------------------
| Authentication Guards
|--------------------------------------------------------------------------
|
| Next, you may define every authentication guard for your application.
| Of course, a great default configuration has been defined for you
| here which uses "session" storage and the Eloquent user source.
| |
| All authentication drivers have a "provider". A provider defines how | All authentication drivers have a user "source". This defines how the
| users are actually retrieved out of the database or other storage | users are actually retrieved out of your database or other storage
| mechanism used by your application to persist your user's data. | mechanisms used by this application to persist your user's data.
| |
| Supported: "session" | Supported: "session"
| |
*/ */
'default_guard' => 'web',
'guards' => [ 'guards' => [
'web' => [ 'web' => [
'driver' => 'session', 'driver' => 'session',
'provider' => 'eloquent', 'source' => 'users',
], ],
// 'api' => [ // 'api' => [
...@@ -38,19 +48,19 @@ return [ ...@@ -38,19 +48,19 @@ return [
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| User Providers | User Sources
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| |
| All authentication drivers have a "provider". A provider defines how | All authentication drivers have a user "source". This defines how the
| users are actually retrieved out of the database or other storage | users are actually retrieved out of your database or other storage
| mechanisms used by the application to persist your user's data. | mechanisms used by this application to persist your user's data.
| |
| Supported: "database", "eloquent" | Supported: "database", "eloquent"
| |
*/ */
'providers' => [ 'sources' => [
'eloquent' => [ 'users' => [
'driver' => 'eloquent', 'driver' => 'eloquent',
'model' => App\User::class, 'model' => App\User::class,
], ],
...@@ -63,16 +73,16 @@ return [ ...@@ -63,16 +73,16 @@ return [
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| Password Resets | Resetting Passwords
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| |
| Here you may set the options for resetting passwords including the view | Here you may set the options for resetting passwords including the view
| that is your password reset e-mail. You can also set the name of the | that is your password reset e-mail. You may also set the name of the
| table that maintains all of the reset tokens for your application. | table that maintains all of the reset tokens for your application.
| |
| Of course, you may define multiple password resetters each with a their | Of course, you may define multiple password resetters each with a their
| own storage settings and user providers. However, for most apps this | own storage settings and user providers. However, for most apps this
| default configuration of using Eloquent is perfect out of the box. | simple configuration with Eloquent is just perfect out of the box.
| |
| The expire time is the number of minutes that the reset token should be | The expire time is the number of minutes that the reset token should be
| considered valid. This security feature keeps tokens short-lived so | considered valid. This security feature keeps tokens short-lived so
...@@ -80,11 +90,9 @@ return [ ...@@ -80,11 +90,9 @@ return [
| |
*/ */
'default_resetter' => 'default', 'passwords' => [
'users' => [
'resetters' => [ 'source' => 'users',
'default' => [
'provider' => 'eloquent',
'email' => 'emails.password', 'email' => 'emails.password',
'table' => 'password_resets', 'table' => 'password_resets',
'expire' => 60, 'expire' => 60,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment