Changeset View
Changeset View
Standalone View
Standalone View
src/config/session.php
Show First 20 Lines • Show All 66 Lines • ▼ Show 20 Lines | return [ | ||||
|-------------------------------------------------------------------------- | |-------------------------------------------------------------------------- | ||||
| | | | ||||
| When using the "database" or "redis" session drivers, you may specify a | | When using the "database" or "redis" session drivers, you may specify a | ||||
| connection that should be used to manage these sessions. This should | | connection that should be used to manage these sessions. This should | ||||
| correspond to a connection in your database configuration options. | | correspond to a connection in your database configuration options. | ||||
| | | | ||||
*/ | */ | ||||
'connection' => env('SESSION_CONNECTION', null), | 'connection' => env('SESSION_CONNECTION'), | ||||
/* | /* | ||||
|-------------------------------------------------------------------------- | |-------------------------------------------------------------------------- | ||||
| Session Database Table | | Session Database Table | ||||
|-------------------------------------------------------------------------- | |-------------------------------------------------------------------------- | ||||
| | | | ||||
| When using the "database" session driver, you may specify the table we | | When using the "database" session driver, you may specify the table we | ||||
| should use to manage the sessions. Of course, a sensible default is | | should use to manage the sessions. Of course, a sensible default is | ||||
| provided for you; however, you are free to change this as needed. | | provided for you; however, you are free to change this as needed. | ||||
| | | | ||||
*/ | */ | ||||
'table' => 'sessions', | 'table' => 'sessions', | ||||
/* | /* | ||||
|-------------------------------------------------------------------------- | |-------------------------------------------------------------------------- | ||||
| Session Cache Store | | Session Cache Store | ||||
|-------------------------------------------------------------------------- | |-------------------------------------------------------------------------- | ||||
| | | | ||||
| When using the "apc", "memcached", or "dynamodb" session drivers you may | | While using one of the framework's cache driven session backends you may | ||||
| list a cache store that should be used for these sessions. This value | | list a cache store that should be used for these sessions. This value | ||||
| must match with one of the application's configured cache "stores". | | must match with one of the application's configured cache "stores". | ||||
| | | | ||||
| Affects: "apc", "dynamodb", "memcached", "redis" | |||||
| | |||||
*/ | */ | ||||
'store' => env('SESSION_STORE', null), | 'store' => env('SESSION_STORE'), | ||||
/* | /* | ||||
|-------------------------------------------------------------------------- | |-------------------------------------------------------------------------- | ||||
| Session Sweeping Lottery | | Session Sweeping Lottery | ||||
|-------------------------------------------------------------------------- | |-------------------------------------------------------------------------- | ||||
| | | | ||||
| Some session drivers must manually sweep their storage location to get | | Some session drivers must manually sweep their storage location to get | ||||
| rid of old sessions from storage. Here are the chances that it will | | rid of old sessions from storage. Here are the chances that it will | ||||
Show All 11 Lines | return [ | ||||
| Here you may change the name of the cookie used to identify a session | | Here you may change the name of the cookie used to identify a session | ||||
| instance by ID. The name specified here will get used every time a | | instance by ID. The name specified here will get used every time a | ||||
| new session cookie is created by the framework for every driver. | | new session cookie is created by the framework for every driver. | ||||
| | | | ||||
*/ | */ | ||||
'cookie' => env( | 'cookie' => env( | ||||
'SESSION_COOKIE', | 'SESSION_COOKIE', | ||||
Str::slug(env('APP_NAME', 'laravel'), '_') . '_session' | Str::slug(env('APP_NAME', 'laravel'), '_').'_session' | ||||
Lint: PSR12.Operators.OperatorSpacing.NoSpaceBefore: Expected at least 1 space before "."; 0 found | |||||
Lint: PSR12.Operators.OperatorSpacing.NoSpaceAfter Expected at least 1 space after "."; 0 found Lint: PSR12.Operators.OperatorSpacing.NoSpaceAfter: Expected at least 1 space after "."; 0 found | |||||
), | ), | ||||
/* | /* | ||||
|-------------------------------------------------------------------------- | |-------------------------------------------------------------------------- | ||||
| Session Cookie Path | | Session Cookie Path | ||||
|-------------------------------------------------------------------------- | |-------------------------------------------------------------------------- | ||||
| | | | ||||
| The session cookie path determines the path for which the cookie will | | The session cookie path determines the path for which the cookie will | ||||
Show All 10 Lines | return [ | ||||
|-------------------------------------------------------------------------- | |-------------------------------------------------------------------------- | ||||
| | | | ||||
| Here you may change the domain of the cookie used to identify a session | | Here you may change the domain of the cookie used to identify a session | ||||
| in your application. This will determine which domains the cookie is | | in your application. This will determine which domains the cookie is | ||||
| available to in your application. A sensible default has been set. | | available to in your application. A sensible default has been set. | ||||
| | | | ||||
*/ | */ | ||||
'domain' => env('SESSION_DOMAIN', null), | 'domain' => env('SESSION_DOMAIN'), | ||||
/* | /* | ||||
|-------------------------------------------------------------------------- | |-------------------------------------------------------------------------- | ||||
| HTTPS Only Cookies | | HTTPS Only Cookies | ||||
|-------------------------------------------------------------------------- | |-------------------------------------------------------------------------- | ||||
| | | | ||||
| By setting this option to true, session cookies will only be sent back | | By setting this option to true, session cookies will only be sent back | ||||
| to the server if the browser has a HTTPS connection. This will keep | | to the server if the browser has a HTTPS connection. This will keep | ||||
| the cookie from being sent to you if it can not be done securely. | | the cookie from being sent to you when it can't be done securely. | ||||
| | | | ||||
*/ | */ | ||||
'secure' => env('SESSION_SECURE_COOKIE', false), | 'secure' => env('SESSION_SECURE_COOKIE'), | ||||
/* | /* | ||||
|-------------------------------------------------------------------------- | |-------------------------------------------------------------------------- | ||||
| HTTP Access Only | | HTTP Access Only | ||||
|-------------------------------------------------------------------------- | |-------------------------------------------------------------------------- | ||||
| | | | ||||
| Setting this value to true will prevent JavaScript from accessing the | | Setting this value to true will prevent JavaScript from accessing the | ||||
| value of the cookie and the cookie will only be accessible through | | value of the cookie and the cookie will only be accessible through | ||||
| the HTTP protocol. You are free to modify this option if needed. | | the HTTP protocol. You are free to modify this option if needed. | ||||
| | | | ||||
*/ | */ | ||||
'http_only' => true, | 'http_only' => true, | ||||
/* | /* | ||||
|-------------------------------------------------------------------------- | |-------------------------------------------------------------------------- | ||||
| Same-Site Cookies | | Same-Site Cookies | ||||
|-------------------------------------------------------------------------- | |-------------------------------------------------------------------------- | ||||
| | | | ||||
| This option determines how your cookies behave when cross-site requests | | This option determines how your cookies behave when cross-site requests | ||||
| take place, and can be used to mitigate CSRF attacks. By default, we | | take place, and can be used to mitigate CSRF attacks. By default, we | ||||
| do not enable this as other CSRF protection services are in place. | | will set this value to "lax" since this is a secure default value. | ||||
| | | | ||||
| Supported: "lax", "strict" | | Supported: "lax", "strict", "none", null | ||||
| | | | ||||
*/ | */ | ||||
'same_site' => null, | 'same_site' => 'lax', | ||||
]; | ]; |
Expected at least 1 space before "."; 0 found