|
9 | 9 | /* |
10 | 10 | * Application Name |
11 | 11 | * |
12 | | - * This value is the name of your application. This value is used when the |
| 12 | + * This value is the name of your application, which will be used when the |
13 | 13 | * framework needs to place the application's name in a notification or |
14 | | - * any other location as required by the application or its packages. |
15 | | - * |
| 14 | + * other UI elements where an application name needs to be displayed. |
16 | 15 | */ |
17 | 16 | 'name' => env('APP_NAME', 'Laravel'), |
18 | 17 |
|
|
22 | 21 | * This value determines the "environment" your application is currently |
23 | 22 | * running in. This may determine how you prefer to configure various |
24 | 23 | * services the application utilizes. Set this in your ".env" file. |
25 | | - * |
26 | 24 | */ |
27 | 25 | 'env' => env('APP_ENV', 'production'), |
28 | 26 |
|
|
32 | 30 | * When your application is in debug mode, detailed error messages with |
33 | 31 | * stack traces will be shown on every error that occurs within your |
34 | 32 | * application. If disabled, a simple generic error page is shown. |
35 | | - * |
36 | 33 | */ |
37 | 34 | 'debug' => (bool) env('APP_DEBUG', false), |
38 | 35 |
|
|
41 | 38 | * |
42 | 39 | * This URL is used by the console to properly generate URLs when using |
43 | 40 | * the Artisan command line tool. You should set this to the root of |
44 | | - * your application so that it is used when running Artisan tasks. |
45 | | - * |
| 41 | + * the application so that it's available within Artisan commands. |
46 | 42 | */ |
47 | 43 | 'url' => env('APP_URL', 'http://localhost'), |
| 44 | + 'frontend_url' => env('FRONTEND_URL', 'http://localhost:3000'), |
48 | 45 | 'asset_url' => env('ASSET_URL'), |
49 | 46 |
|
50 | 47 | /* |
51 | 48 | * Application Timezone |
52 | 49 | * |
53 | 50 | * Here you may specify the default timezone for your application, which |
54 | | - * will be used by the PHP date and date-time functions. We have gone |
55 | | - * ahead and set this to a sensible default for you out of the box. |
56 | | - * |
| 51 | + * will be used by the PHP date and date-time functions. The timezone |
| 52 | + * is set to "UTC" by default as it is suitable for most use cases. |
57 | 53 | */ |
58 | 54 | 'timezone' => env('APP_TIMEZONE', 'UTC'), |
59 | 55 |
|
60 | 56 | /* |
61 | 57 | * Application Locale Configuration |
62 | 58 | * |
63 | 59 | * The application locale determines the default locale that will be used |
64 | | - * by the translation service provider. You are free to set this value |
65 | | - * to any of the locales which will be supported by the application. |
66 | | - * |
67 | | - */ |
68 | | - 'locale' => 'en', |
69 | | - |
70 | | - /* |
71 | | - * Application Fallback Locale |
72 | | - * |
73 | | - * The fallback locale determines the locale to use when the current one |
74 | | - * is not available. You may change the value to correspond to any of |
75 | | - * the language folders that are provided through your application. |
76 | | - * |
| 60 | + * by Laravel's translation / localization methods. This option can be |
| 61 | + * set to any locale for which you plan to have translation strings. |
77 | 62 | */ |
78 | | - 'fallback_locale' => 'en', |
79 | | - |
80 | | - /* |
81 | | - * Faker Locale |
82 | | - * |
83 | | - * This locale will be used by the Faker PHP library when generating fake |
84 | | - * data for your database seeds. For example, this will be used to get |
85 | | - * localized telephone numbers, street address information and more. |
86 | | - * |
87 | | - */ |
88 | | - 'faker_locale' => 'en_US', |
| 63 | + 'locale' => env('APP_LOCALE', 'en'), |
| 64 | + 'fallback_locale' => env('APP_FALLBACK_LOCALE', 'en'), |
| 65 | + 'faker_locale' => env('APP_FAKER_LOCALE', 'en_US'), |
89 | 66 |
|
90 | 67 | /* |
91 | 68 | * Encryption Key |
92 | 69 | * |
93 | | - * This key is used by the Illuminate encrypter service and should be set |
94 | | - * to a random, 32 character string, otherwise these encrypted strings |
95 | | - * will not be safe. Please do this before deploying an application! |
96 | | - * |
| 70 | + * This key is utilized by Laravel's encryption services and should be set |
| 71 | + * to a random, 32 character string to ensure that all encrypted values |
| 72 | + * are secure. You should do this prior to deploying the application. |
97 | 73 | */ |
98 | | - 'key' => env('APP_KEY'), |
99 | 74 | 'cipher' => 'AES-256-CBC', |
| 75 | + 'key' => env('APP_KEY'), |
| 76 | + 'previous_keys' => [ |
| 77 | + ...array_filter( |
| 78 | + explode(',', env('APP_PREVIOUS_KEYS', '')) |
| 79 | + ), |
| 80 | + ], |
100 | 81 |
|
101 | 82 | /* |
102 | 83 | * Maintenance Mode Driver |
|
106 | 87 | * allow maintenance mode to be controlled across multiple machines. |
107 | 88 | * |
108 | 89 | * Supported drivers: "file", "cache" |
109 | | - * |
110 | 90 | */ |
111 | 91 | 'maintenance' => [ |
112 | | - 'driver' => 'file', |
113 | | - // 'store' => 'redis', |
| 92 | + 'driver' => env('APP_MAINTENANCE_DRIVER', 'file'), |
| 93 | + 'store' => env('APP_MAINTENANCE_STORE', 'database'), |
114 | 94 | ], |
115 | 95 |
|
116 | 96 | /* |
|
119 | 99 | * The service providers listed here will be automatically loaded on the |
120 | 100 | * request to your application. Feel free to add your own services to |
121 | 101 | * this array to grant expanded functionality to your applications. |
122 | | - * |
123 | 102 | */ |
124 | 103 | 'providers' => ServiceProvider::defaultProviders()->merge([ |
125 | 104 | /* |
|
0 commit comments