app.php 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  1. <?php
  2. use Illuminate\Support\Facades\Facade;
  3. return [
  4. 'version' => '0.10',
  5. /*
  6. |--------------------------------------------------------------------------
  7. | Application Name
  8. |--------------------------------------------------------------------------
  9. |
  10. | This value is the name of your application. This value is used when the
  11. | framework needs to place the application's name in a notification or
  12. | any other location as required by the application or its packages.
  13. |
  14. */
  15. 'name' => env('APP_NAME', 'CtrlPanel.gg'),
  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. | your application so that it is used when running Artisan tasks.
  46. |
  47. */
  48. 'url' => env('APP_URL', 'http://localhost'),
  49. 'asset_url' => env('ASSET_URL', null),
  50. /*
  51. |--------------------------------------------------------------------------
  52. | Application Timezone
  53. |--------------------------------------------------------------------------
  54. |
  55. | Here you may specify the default timezone for your application, which
  56. | will be used by the PHP date and date-time functions. We have gone
  57. | ahead and set this to a sensible default for you out of the box.
  58. |
  59. */
  60. 'timezone' => env('APP_TIMEZONE', 'UTC'),
  61. /*
  62. |--------------------------------------------------------------------------
  63. | Application Locale Configuration
  64. |--------------------------------------------------------------------------
  65. |
  66. | The application locale determines the default locale that will be used
  67. | by the translation service provider. You are free to set this value
  68. | to any of the locales which will be supported by the application.
  69. |
  70. */
  71. 'locale' => 'en',
  72. /*
  73. |--------------------------------------------------------------------------
  74. | Available Languages
  75. |--------------------------------------------------------------------------
  76. |
  77. | The application locale determines the default locale that will be used
  78. | by the translation service provider. You are free to set this value
  79. | to any of the locales which will be supported by the application.
  80. |
  81. */
  82. 'available_locales' => array_map('basename', preg_replace('/\\.[^.\\s]{3,4}$/', '', glob(base_path("lang").'/*.json', GLOB_BRACE))),
  83. /*
  84. |--------------------------------------------------------------------------
  85. | Application Fallback Locale
  86. |--------------------------------------------------------------------------
  87. |
  88. | The fallback locale determines the locale to use when the current one
  89. | is not available. You may change the value to correspond to any of
  90. | the language folders that are provided through your application.
  91. |
  92. */
  93. 'fallback_locale' => 'en',
  94. /*
  95. |--------------------------------------------------------------------------
  96. | Faker Locale
  97. |--------------------------------------------------------------------------
  98. |
  99. | This locale will be used by the Faker PHP library when generating fake
  100. | data for your database seeds. For example, this will be used to get
  101. | localized telephone numbers, street address information and more.
  102. |
  103. */
  104. 'faker_locale' => 'en_US',
  105. /*
  106. |--------------------------------------------------------------------------
  107. | Encryption Key
  108. |--------------------------------------------------------------------------
  109. |
  110. | This key is used by the Illuminate encrypter service and should be set
  111. | to a random, 32 character string, otherwise these encrypted strings
  112. | will not be safe. Please do this before deploying an application!
  113. |
  114. */
  115. 'key' => env('APP_KEY'),
  116. 'cipher' => 'AES-256-CBC',
  117. /*
  118. |--------------------------------------------------------------------------
  119. | Maintenance Mode Driver
  120. |--------------------------------------------------------------------------
  121. |
  122. | These configuration options determine the driver used to determine and
  123. | manage Laravel's "maintenance mode" status. The "cache" driver will
  124. | allow maintenance mode to be controlled across multiple machines.
  125. |
  126. | Supported drivers: "file", "cache"
  127. |
  128. */
  129. 'maintenance' => [
  130. 'driver' => 'file',
  131. // 'store' => 'redis',
  132. ],
  133. /*
  134. |--------------------------------------------------------------------------
  135. | Autoloaded Service Providers
  136. |--------------------------------------------------------------------------
  137. |
  138. | The service providers listed here will be automatically loaded on the
  139. | request to your application. Feel free to add your own services to
  140. | this array to grant expanded functionality to your applications.
  141. |
  142. */
  143. 'providers' => [
  144. /*
  145. * Laravel Framework Service Providers...
  146. */
  147. Illuminate\Auth\AuthServiceProvider::class,
  148. Illuminate\Broadcasting\BroadcastServiceProvider::class,
  149. Illuminate\Bus\BusServiceProvider::class,
  150. Illuminate\Cache\CacheServiceProvider::class,
  151. Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class,
  152. Illuminate\Cookie\CookieServiceProvider::class,
  153. Illuminate\Database\DatabaseServiceProvider::class,
  154. Illuminate\Encryption\EncryptionServiceProvider::class,
  155. Illuminate\Filesystem\FilesystemServiceProvider::class,
  156. Illuminate\Foundation\Providers\FoundationServiceProvider::class,
  157. Illuminate\Hashing\HashServiceProvider::class,
  158. Illuminate\Mail\MailServiceProvider::class,
  159. Illuminate\Notifications\NotificationServiceProvider::class,
  160. Illuminate\Pagination\PaginationServiceProvider::class,
  161. Illuminate\Pipeline\PipelineServiceProvider::class,
  162. Illuminate\Queue\QueueServiceProvider::class,
  163. Illuminate\Redis\RedisServiceProvider::class,
  164. Illuminate\Auth\Passwords\PasswordResetServiceProvider::class,
  165. Illuminate\Session\SessionServiceProvider::class,
  166. Illuminate\Translation\TranslationServiceProvider::class,
  167. Illuminate\Validation\ValidationServiceProvider::class,
  168. Illuminate\View\ViewServiceProvider::class,
  169. /*
  170. * Package Service Providers...
  171. */
  172. /*
  173. * Application Service Providers...
  174. */
  175. App\Providers\AppServiceProvider::class,
  176. App\Providers\AuthServiceProvider::class,
  177. // App\Providers\BroadcastServiceProvider::class,
  178. App\Providers\EventServiceProvider::class,
  179. App\Providers\RouteServiceProvider::class,
  180. Yajra\DataTables\DataTablesServiceProvider::class,
  181. KKomelin\TranslatableStringExporter\Providers\ExporterServiceProvider::class,
  182. Biscolab\ReCaptcha\ReCaptchaServiceProvider::class,
  183. ],
  184. /*
  185. |--------------------------------------------------------------------------
  186. | Class Aliases
  187. |--------------------------------------------------------------------------
  188. |
  189. | This array of class aliases will be registered when this application
  190. | is started. However, feel free to register as many as you wish as
  191. | the aliases are "lazy" loaded so they don't hinder performance.
  192. |
  193. */
  194. 'aliases' => Facade::defaultAliases()->merge([
  195. 'DataTables' => Yajra\DataTables\Facades\DataTables::class,
  196. ])->toArray(),
  197. ];