app.php 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. <?php
  2. use Illuminate\Support\Facades\Facade;
  3. use Illuminate\Support\ServiceProvider;
  4. return [
  5. /*
  6. |--------------------------------------------------------------------------
  7. | Application Name
  8. |--------------------------------------------------------------------------
  9. |
  10. | This value is the name of your application, which will be used when the
  11. | framework needs to place the application's name in a notification or
  12. | other UI elements where an application name needs to be displayed.
  13. |
  14. */
  15. 'name' => env('APP_NAME', 'Laravel'),
  16. /*
  17. |--------------------------------------------------------------------------
  18. | Application Environment
  19. |--------------------------------------------------------------------------
  20. |
  21. | This value determines the "environment" your application is currently
  22. | running in. This may determine how you prefer to configure various
  23. | services the application utilizes. Set this in your ".env" file.
  24. |
  25. */
  26. 'env' => env('APP_ENV', 'production'),
  27. /*
  28. |--------------------------------------------------------------------------
  29. | Application Debug Mode
  30. |--------------------------------------------------------------------------
  31. |
  32. | When your application is in debug mode, detailed error messages with
  33. | stack traces will be shown on every error that occurs within your
  34. | application. If disabled, a simple generic error page is shown.
  35. |
  36. */
  37. 'debug' => (bool) env('APP_DEBUG', false),
  38. /*
  39. |--------------------------------------------------------------------------
  40. | Application URL
  41. |--------------------------------------------------------------------------
  42. |
  43. | This URL is used by the console to properly generate URLs when using
  44. | the Artisan command line tool. You should set this to the root of
  45. | the application so that it's available within Artisan commands.
  46. |
  47. */
  48. 'url' => env('APP_URL', 'http://localhost'),
  49. 'frontend_url' => env('FRONTEND_URL', 'http://localhost:3000'),
  50. 'asset_url' => env('ASSET_URL'),
  51. /*
  52. |--------------------------------------------------------------------------
  53. | Application Timezone
  54. |--------------------------------------------------------------------------
  55. |
  56. | Here you may specify the default timezone for your application, which
  57. | will be used by the PHP date and date-time functions. The timezone
  58. | is set to "UTC" by default as it is suitable for most use cases.
  59. |
  60. */
  61. 'timezone' => env('APP_TIMEZONE', 'UTC'),
  62. /*
  63. |--------------------------------------------------------------------------
  64. | Application Locale Configuration
  65. |--------------------------------------------------------------------------
  66. |
  67. | The application locale determines the default locale that will be used
  68. | by Laravel's translation / localization methods. This option can be
  69. | set to any locale for which you plan to have translation strings.
  70. |
  71. */
  72. 'locale' => env('APP_LOCALE', 'en'),
  73. /*
  74. |--------------------------------------------------------------------------
  75. | Application Fallback Locale
  76. |--------------------------------------------------------------------------
  77. |
  78. | The fallback locale determines the locale to use when the default one
  79. | is not available. You may change the value to correspond to any of
  80. | the languages which are currently supported by your application.
  81. |
  82. */
  83. 'fallback_locale' => env('APP_FALLBACK_LOCALE', 'en'),
  84. /*
  85. |--------------------------------------------------------------------------
  86. | Faker Locale
  87. |--------------------------------------------------------------------------
  88. |
  89. | This locale will be used by the Faker PHP library when generating fake
  90. | data for your database seeds. For example, this will be used to get
  91. | localized telephone numbers, street address information and more.
  92. |
  93. */
  94. 'faker_locale' => env('APP_FAKER_LOCALE', 'en_US'),
  95. /*
  96. |--------------------------------------------------------------------------
  97. | Encryption Key
  98. |--------------------------------------------------------------------------
  99. |
  100. | This key is utilized by Laravel's encryption services and should be set
  101. | to a random, 32 character string to ensure that all encrypted values
  102. | are secure. You should do this prior to deploying the application.
  103. |
  104. */
  105. 'cipher' => 'AES-256-CBC',
  106. 'key' => env('APP_KEY'),
  107. 'previous_keys' => [
  108. ...array_filter(
  109. explode(',', env('APP_PREVIOUS_KEYS', ''))
  110. ),
  111. ],
  112. /*
  113. |--------------------------------------------------------------------------
  114. | Maintenance Mode Driver
  115. |--------------------------------------------------------------------------
  116. |
  117. | These configuration options determine the driver used to determine and
  118. | manage Laravel's "maintenance mode" status. The "cache" driver will
  119. | allow maintenance mode to be controlled across multiple machines.
  120. |
  121. | Supported drivers: "file", "cache"
  122. |
  123. */
  124. 'maintenance' => [
  125. 'driver' => env('APP_MAINTENANCE_DRIVER', 'file'),
  126. 'store' => env('APP_MAINTENANCE_STORE', 'database'),
  127. ],
  128. /*
  129. |--------------------------------------------------------------------------
  130. | Autoloaded Service Providers
  131. |--------------------------------------------------------------------------
  132. |
  133. | The service providers listed here will be automatically loaded on any
  134. | requests to your application. You may add your own services to the
  135. | arrays below to provide additional features to this application.
  136. |
  137. */
  138. 'providers' => ServiceProvider::defaultProviders()->merge([
  139. // Package Service Providers...
  140. ])->merge([
  141. // Application Service Providers...
  142. // App\Providers\AppServiceProvider::class,
  143. ])->merge([
  144. // Added Service Providers (Do not remove this line)...
  145. ])->toArray(),
  146. /*
  147. |--------------------------------------------------------------------------
  148. | Class Aliases
  149. |--------------------------------------------------------------------------
  150. |
  151. | This array of class aliases will be registered when this application
  152. | is started. You may add any additional class aliases which should
  153. | be loaded to the array. For speed, all aliases are lazy loaded.
  154. |
  155. */
  156. 'aliases' => Facade::defaultAliases()->merge([
  157. // 'Example' => App\Facades\Example::class,
  158. ])->toArray(),
  159. ];