forked from laravel/laravel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
27907e0
commit 96508d4
Showing
12 changed files
with
1,335 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,148 @@ | ||
<?php | ||
|
||
return [ | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Application Name | ||
|-------------------------------------------------------------------------- | ||
| | ||
| This value is the name of your application, which will be used when the | ||
| framework needs to place the application's name in a notification or | ||
| any other location as required by the application or its packages. | ||
| | ||
*/ | ||
|
||
'name' => env('APP_NAME', 'Laravel'), | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Application Environment | ||
|-------------------------------------------------------------------------- | ||
| | ||
| This value determines the "environment" your application is currently | ||
| running in. This may determine how you prefer to configure various | ||
| services the application utilizes. Set this in your ".env" file. | ||
| | ||
*/ | ||
|
||
'env' => env('APP_ENV', 'production'), | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Application Debug Mode | ||
|-------------------------------------------------------------------------- | ||
| | ||
| When your application is in debug mode, detailed error messages with | ||
| stack traces will be shown on every error that occurs within your | ||
| application. If disabled, a simple generic error page is shown. | ||
| | ||
*/ | ||
|
||
'debug' => (bool) env('APP_DEBUG', false), | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Application URL | ||
|-------------------------------------------------------------------------- | ||
| | ||
| This URL is used by the console to properly generate URLs when using | ||
| the Artisan command line tool. You should set this to the root of | ||
| your application so that it is used when running Artisan tasks. | ||
| | ||
*/ | ||
|
||
'url' => env('APP_URL', 'http://localhost'), | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Application Timezone | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Here you may specify the default timezone for your application, which | ||
| will be used by the PHP date and date-time functions. The timezone | ||
| is set to "UTC" by default as it is suitable for most use cases. | ||
| | ||
*/ | ||
|
||
'timezone' => env('APP_TIMEZONE', 'UTC'), | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Application Locale Configuration | ||
|-------------------------------------------------------------------------- | ||
| | ||
| The application locale determines the default locale that will be used | ||
| by the translation service provider. You are free to set this value | ||
| to any of the locales which will be supported by the application. | ||
| | ||
*/ | ||
|
||
'locale' => env('APP_LOCALE', 'en'), | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Application Fallback Locale | ||
|-------------------------------------------------------------------------- | ||
| | ||
| The fallback locale determines the locale to use when the default one | ||
| is not available. You may change the value to correspond to any of | ||
| the languages which are currently supported by your application. | ||
| | ||
*/ | ||
|
||
'fallback_locale' => env('APP_FALLBACK_LOCALE', 'en'), | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Faker Locale | ||
|-------------------------------------------------------------------------- | ||
| | ||
| This locale will be used by the Faker PHP library when generating fake | ||
| data for your database seeds. For example, this will be used to get | ||
| localized telephone numbers, street address information and more. | ||
| | ||
*/ | ||
|
||
'faker_locale' => env('APP_FAKER_LOCALE', 'en_US'), | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Encryption Key | ||
|-------------------------------------------------------------------------- | ||
| | ||
| This key is utilized by Laravel's encryption services and should be set | ||
| to a random, 32 character string to ensure that all encrypted values | ||
| are secure. You should do this prior to deploying the application. | ||
| | ||
*/ | ||
|
||
'cipher' => 'AES-256-CBC', | ||
|
||
'key' => env('APP_KEY'), | ||
|
||
'previous_keys' => [ | ||
...array_filter( | ||
explode(',', env('APP_PREVIOUS_KEYS', '')) | ||
), | ||
], | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Maintenance Mode Driver | ||
|-------------------------------------------------------------------------- | ||
| | ||
| These configuration options determine the driver used to determine and | ||
| manage Laravel's "maintenance mode" status. The "cache" driver will | ||
| allow maintenance mode to be controlled across multiple machines. | ||
| | ||
| Supported drivers: "file", "cache" | ||
| | ||
*/ | ||
|
||
'maintenance' => [ | ||
'driver' => env('APP_MAINTENANCE_DRIVER', 'file'), | ||
'store' => env('APP_MAINTENANCE_STORE', 'database'), | ||
], | ||
|
||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
<?php | ||
|
||
return [ | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Authentication Defaults | ||
|-------------------------------------------------------------------------- | ||
| | ||
| This option controls the default authentication "guard" and password | ||
| reset options for your application. You may change these defaults | ||
| as required, but they're a perfect start for most applications. | ||
| | ||
*/ | ||
|
||
'defaults' => [ | ||
'guard' => env('AUTH_GUARD', 'web'), | ||
'passwords' => env('AUTH_PASSWORD_BROKER', 'users'), | ||
], | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Authentication Guards | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Next, you may define every authentication guard for your application. | ||
| Of course, a great default configuration has been defined for you | ||
| which utilizes session storage plus the Eloquent user provider. | ||
| | ||
| All authentication drivers have a user provider. This defines how the | ||
| users are actually retrieved out of your database or other storage | ||
| mechanisms used by this application to persist your user's data. | ||
| | ||
| Supported: "session" | ||
| | ||
*/ | ||
|
||
'guards' => [ | ||
'web' => [ | ||
'driver' => 'session', | ||
'provider' => 'users', | ||
], | ||
], | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| User Providers | ||
|-------------------------------------------------------------------------- | ||
| | ||
| All authentication drivers have a user provider. This defines how the | ||
| users are actually retrieved out of your database or other storage | ||
| mechanisms used by this application to persist your user's data. | ||
| | ||
| If you have multiple user tables or models you may configure multiple | ||
| sources which represent each model / table. These sources may then | ||
| be assigned to any extra authentication guards you have defined. | ||
| | ||
| Supported: "database", "eloquent" | ||
| | ||
*/ | ||
|
||
'providers' => [ | ||
'users' => [ | ||
'driver' => 'eloquent', | ||
'model' => env('AUTH_MODEL', App\Models\User::class), | ||
], | ||
|
||
// 'users' => [ | ||
// 'driver' => 'database', | ||
// 'table' => 'users', | ||
// ], | ||
], | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Resetting Passwords | ||
|-------------------------------------------------------------------------- | ||
| | ||
| You may specify multiple password reset configurations if you have more | ||
| than one user table or model in the application and you want to have | ||
| separate password reset settings based on the specific user types. | ||
| | ||
| The expiry time is the number of minutes that each reset token will be | ||
| considered valid. This security feature keeps tokens short-lived so | ||
| they have less time to be guessed. You may change this as needed. | ||
| | ||
| The throttle setting is the number of seconds a user must wait before | ||
| generating more password reset tokens. This prevents the user from | ||
| quickly generating a very large amount of password reset tokens. | ||
| | ||
*/ | ||
|
||
'passwords' => [ | ||
'users' => [ | ||
'provider' => 'users', | ||
'table' => env('AUTH_PASSWORD_RESET_TOKEN_TABLE', 'password_reset_tokens'), | ||
'expire' => 60, | ||
'throttle' => 60, | ||
], | ||
], | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Password Confirmation Timeout | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Here you may define the amount of seconds before a password confirmation | ||
| window expires and users are asked to re-enter their password via the | ||
| confirmation screen. By default, the timeout lasts for three hours. | ||
| | ||
*/ | ||
|
||
'password_timeout' => env('AUTH_PASSWORD_TIMEOUT', 10800), | ||
|
||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
<?php | ||
|
||
return [ | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Default Broadcaster | ||
|-------------------------------------------------------------------------- | ||
| | ||
| This option controls the default broadcaster that will be used by the | ||
| framework when an event needs to be broadcast. You may set this to | ||
| any of the connections defined in the "connections" array below. | ||
| | ||
| Supported: "reverb", "pusher", "ably", "redis", "log", "null" | ||
| | ||
*/ | ||
|
||
'default' => env('BROADCAST_CONNECTION', 'null'), | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Broadcast Connections | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Here you may define all of the broadcast connections that will be used | ||
| to broadcast events to other systems or over websockets. Samples of | ||
| each available type of connection are provided inside this array. | ||
| | ||
*/ | ||
|
||
'connections' => [ | ||
|
||
'reverb' => [ | ||
'driver' => 'reverb', | ||
'key' => env('REVERB_APP_KEY'), | ||
'secret' => env('REVERB_APP_SECRET'), | ||
'app_id' => env('REVERB_APP_ID'), | ||
'options' => [ | ||
'host' => env('REVERB_HOST'), | ||
'port' => env('REVERB_PORT', 443), | ||
'scheme' => env('REVERB_SCHEME', 'https'), | ||
'useTLS' => env('REVERB_SCHEME', 'https') === 'https', | ||
], | ||
'client_options' => [ | ||
// Guzzle client options: https://docs.guzzlephp.org/en/stable/request-options.html | ||
], | ||
], | ||
|
||
'pusher' => [ | ||
'driver' => 'pusher', | ||
'key' => env('PUSHER_APP_KEY'), | ||
'secret' => env('PUSHER_APP_SECRET'), | ||
'app_id' => env('PUSHER_APP_ID'), | ||
'options' => [ | ||
'cluster' => env('PUSHER_APP_CLUSTER'), | ||
'host' => env('PUSHER_HOST') ?: 'api-'.env('PUSHER_APP_CLUSTER', 'mt1').'.pusher.com', | ||
'port' => env('PUSHER_PORT', 443), | ||
'scheme' => env('PUSHER_SCHEME', 'https'), | ||
'encrypted' => true, | ||
'useTLS' => env('PUSHER_SCHEME', 'https') === 'https', | ||
], | ||
'client_options' => [ | ||
// Guzzle client options: https://docs.guzzlephp.org/en/stable/request-options.html | ||
], | ||
], | ||
|
||
'ably' => [ | ||
'driver' => 'ably', | ||
'key' => env('ABLY_KEY'), | ||
], | ||
|
||
'log' => [ | ||
'driver' => 'log', | ||
], | ||
|
||
'null' => [ | ||
'driver' => 'null', | ||
], | ||
|
||
], | ||
|
||
]; |
Oops, something went wrong.