разные конфиги

This commit is contained in:
vasya
2026-04-12 21:13:42 +03:00
parent 1724d93094
commit 683cba7118
+92 -23
View File
@@ -1,5 +1,8 @@
<?php <?php
use Illuminate\Support\Facades\Facade;
use Illuminate\Support\ServiceProvider;
return [ return [
/* /*
@@ -7,9 +10,9 @@ return [
| Application Name | Application Name
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| |
| This value is the name of your application, which will be used when the | This value is the name of your application. This value is used when the
| framework needs to place the application's name in a notification or | framework needs to place the application's name in a notification or
| other UI elements where an application name needs to be displayed. | any other location as required by the application or its packages.
| |
*/ */
@@ -48,24 +51,28 @@ return [
| |
| This URL is used by the console to properly generate URLs when using | 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 | the Artisan command line tool. You should set this to the root of
| the application so that it's available within Artisan commands. | your application so that it is used when running Artisan tasks.
| |
*/ */
'url' => env('APP_URL', 'http://localhost'), 'url' => env('APP_URL', 'http://localhost'),
'asset_url' => env('ASSET_URL'),
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| Application Timezone | Application Timezone
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| |
| Here you may specify the default timezone for your application, which | Here you may specify the default timezone for your application, which
| will be used by the PHP date and date-time functions. The timezone | will be used by the PHP date and date-time functions. We have gone
| is set to "UTC" by default as it is suitable for most use cases. | ahead and set this to a sensible default for you out of the box.
| |
*/ */
'timezone' => 'UTC', #Гаврилов
//ПОМЕНЯТЬ НА ПРОДЕ
'timezone' => 'Europe/Moscow',
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
@@ -73,37 +80,54 @@ return [
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| |
| The application locale determines the default locale that will be used | The application locale determines the default locale that will be used
| by Laravel's translation / localization methods. This option can be | by the translation service provider. You are free to set this value
| set to any locale for which you plan to have translation strings. | to any of the locales which will be supported by the application.
| |
*/ */
'locale' => env('APP_LOCALE', 'en'), 'locale' => 'ru',
'fallback_locale' => 'en', // Резервный язык (если перевод отсутствует)
'fallback_locale' => env('APP_FALLBACK_LOCALE', 'en'), /*
|--------------------------------------------------------------------------
| Application Fallback Locale
|--------------------------------------------------------------------------
|
| The fallback locale determines the locale to use when the current one
| is not available. You may change the value to correspond to any of
| the language folders that are provided through your application.
|
*/
'faker_locale' => env('APP_FAKER_LOCALE', 'en_US'), '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' => 'en_US',
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| Encryption Key | Encryption Key
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| |
| This key is utilized by Laravel's encryption services and should be set | This key is used by the Illuminate encrypter service and should be set
| to a random, 32 character string to ensure that all encrypted values | to a random, 32 character string, otherwise these encrypted strings
| are secure. You should do this prior to deploying the application. | will not be safe. Please do this before deploying an application!
| |
*/ */
'cipher' => 'AES-256-CBC',
'key' => env('APP_KEY'), 'key' => env('APP_KEY'),
'previous_keys' => [ 'cipher' => 'AES-256-CBC',
...array_filter(
explode(',', (string) env('APP_PREVIOUS_KEYS', ''))
),
],
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
@@ -119,8 +143,53 @@ return [
*/ */
'maintenance' => [ 'maintenance' => [
'driver' => env('APP_MAINTENANCE_DRIVER', 'file'), 'driver' => 'file',
'store' => env('APP_MAINTENANCE_STORE', 'database'), // 'store' => 'redis',
], ],
/*
|--------------------------------------------------------------------------
| Autoloaded Service Providers
|--------------------------------------------------------------------------
|
| The service providers listed here will be automatically loaded on the
| request to your application. Feel free to add your own services to
| this array to grant expanded functionality to your applications.
|
*/
'providers' => ServiceProvider::defaultProviders()->merge([
/*
* Package Service Providers...
*/
/*
* Application Service Providers...
*/
App\Providers\AppServiceProvider::class,
App\Providers\AuthServiceProvider::class,
App\Providers\AuthorizationServiceProvider::class,
// App\Providers\BroadcastServiceProvider::class,
App\Providers\EventServiceProvider::class,
App\Providers\RouteServiceProvider::class,
])->toArray(),
/*
|--------------------------------------------------------------------------
| Class Aliases
|--------------------------------------------------------------------------
|
| This array of class aliases will be registered when this application
| is started. However, feel free to register as many as you wish as
| the aliases are "lazy" loaded so they don't hinder performance.
|
*/
'aliases' => Facade::defaultAliases()->merge([
// 'Example' => App\Facades\Example::class,
])->toArray(),
'test_env' => env('TEST_ENV'),
//Время жизни сессии
'session_life_time' => env('SESSION_LIFETIME'),
]; ];