app.php 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. <?php
  2. declare(strict_types=1);
  3. use Hypervel\Support\Facades\Facade;
  4. use Hypervel\Support\ServiceProvider;
  5. use Psr\Log\LogLevel;
  6. return [
  7. /*
  8. |--------------------------------------------------------------------------
  9. | Application Name
  10. |--------------------------------------------------------------------------
  11. |
  12. | This value is the name of your application. This value is used when the
  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. |
  16. */
  17. 'name' => env('APP_NAME', 'Hypervel'),
  18. /*
  19. |--------------------------------------------------------------------------
  20. | Application Environment
  21. |--------------------------------------------------------------------------
  22. |
  23. | This value determines the "environment" your application is currently
  24. | running in. This may determine how you prefer to configure various
  25. | services the application utilizes. Set "APP_ENV" in your ".env" file.
  26. |
  27. */
  28. 'env' => env('APP_ENV', 'production'),
  29. /*
  30. |--------------------------------------------------------------------------
  31. | Application Debug Mode
  32. |--------------------------------------------------------------------------
  33. |
  34. | When your application is in debug mode, detailed error messages with
  35. | stack traces will be shown on every error that occurs within your
  36. | application. If disabled, a simple generic error page is shown.
  37. | Set "APP_DEBUG" in your ".env" file.
  38. |
  39. */
  40. 'debug' => (bool) env('APP_DEBUG', false),
  41. /*
  42. |--------------------------------------------------------------------------
  43. | Cacheable Flag for Annotations Scanning
  44. |--------------------------------------------------------------------------
  45. |
  46. | Enabling this option will cache the annotations scanning result. It
  47. | can boost the performance of the framework initialization.
  48. | Please disable it in the development environment.
  49. |
  50. */
  51. 'scan_cacheable' => env('SCAN_CACHEABLE', false),
  52. /*
  53. |--------------------------------------------------------------------------
  54. | Log Levels for StdoutLogger
  55. |--------------------------------------------------------------------------
  56. |
  57. | This value only determines the log levels that are written to the stdout logger.
  58. | It does not affect the log levels that are written to the other loggers.
  59. |
  60. */
  61. 'stdout_log_level' => [
  62. LogLevel::ALERT,
  63. LogLevel::CRITICAL,
  64. // LogLevel::DEBUG,
  65. LogLevel::EMERGENCY,
  66. LogLevel::ERROR,
  67. LogLevel::INFO,
  68. LogLevel::NOTICE,
  69. LogLevel::WARNING,
  70. ],
  71. /*
  72. |--------------------------------------------------------------------------
  73. | Application URL
  74. |--------------------------------------------------------------------------
  75. |
  76. | This URL is used by the console to properly generate URLs when using
  77. | the Artisan command line tool. You should set this to the root of
  78. | your application so that it is used when running Artisan tasks.
  79. |
  80. */
  81. 'url' => env('APP_URL', 'http://localhost'),
  82. /*
  83. |--------------------------------------------------------------------------
  84. | Application Timezone
  85. |--------------------------------------------------------------------------
  86. |
  87. | Here you may specify the default timezone for your application, which
  88. | will be used by the PHP date and date-time functions. We have gone
  89. | ahead and set this to a sensible default for you out of the box.
  90. |
  91. */
  92. 'timezone' => env('APP_TIMEZONE', 'UTC'),
  93. /*
  94. |--------------------------------------------------------------------------
  95. | Application Locale Configuration
  96. |--------------------------------------------------------------------------
  97. |
  98. | The application locale determines the default locale that will be used
  99. | by the translation service provider. You are free to set this value
  100. | to any of the locales which will be supported by the application.
  101. |
  102. */
  103. 'locale' => env('APP_LOCALE', 'en'),
  104. 'fallback_locale' => env('APP_FALLBACK_LOCALE', 'en'),
  105. /*
  106. |--------------------------------------------------------------------------
  107. | Encryption Key
  108. |--------------------------------------------------------------------------
  109. |
  110. | This key is utilized by Laravel's encryption services and should be set
  111. | to a random, 32 character string to ensure that all encrypted values
  112. | are secure. You should do this prior to deploying the application.
  113. |
  114. */
  115. 'cipher' => 'AES-256-CBC',
  116. 'key' => env('APP_KEY'),
  117. 'previous_keys' => [
  118. ...array_filter(
  119. explode(',', env('APP_PREVIOUS_KEYS', ''))
  120. ),
  121. ],
  122. 'providers' => ServiceProvider::defaultProviders()->merge([
  123. /*
  124. * Package Service Providers...
  125. */
  126. /*
  127. * Application Service Providers...
  128. */
  129. App\Providers\AppServiceProvider::class,
  130. // App\Providers\BroadcastServiceProvider::class,
  131. // App\Providers\EventServiceProvider::class,
  132. App\Providers\RouteServiceProvider::class,
  133. ])->toArray(),
  134. /*
  135. |--------------------------------------------------------------------------
  136. | Class Aliases
  137. |--------------------------------------------------------------------------
  138. |
  139. | This array of class aliases will be registered when this application
  140. | is started.
  141. |
  142. */
  143. 'aliases' => Facade::defaultAliases()->merge([
  144. // 'Example' => App\Facades\Example::class,
  145. ])->toArray(),
  146. ];