app.php 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  1. <?php
  2. $country = explode(',', env('LOCALE_SEQUENCE'))[0];
  3. $locale = strtolower(explode('_', $country)[0]);
  4. return [
  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', '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. | 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' => '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' => $locale,
  72. /*
  73. |--------------------------------------------------------------------------
  74. | Application Fallback Locale
  75. |--------------------------------------------------------------------------
  76. |
  77. | The fallback locale determines the locale to use when the current one
  78. | is not available. You may change the value to correspond to any of
  79. | the language folders that are provided through your application.
  80. |
  81. */
  82. 'fallback_locale' => 'en',
  83. /*
  84. |--------------------------------------------------------------------------
  85. | Faker Locale
  86. |--------------------------------------------------------------------------
  87. |
  88. | This locale will be used by the Faker PHP library when generating fake
  89. | data for your database seeds. For example, this will be used to get
  90. | localized telephone numbers, street address information and more.
  91. |
  92. */
  93. 'faker_locale' => 'en_US',
  94. /*
  95. |--------------------------------------------------------------------------
  96. | Encryption Key
  97. |--------------------------------------------------------------------------
  98. |
  99. | This key is used by the Illuminate encrypter service and should be set
  100. | to a random, 32 character string, otherwise these encrypted strings
  101. | will not be safe. Please do this before deploying an application!
  102. |
  103. */
  104. 'key' => env('APP_KEY'),
  105. 'cipher' => 'AES-256-CBC',
  106. /*
  107. |--------------------------------------------------------------------------
  108. | Autoloaded Service Providers
  109. |--------------------------------------------------------------------------
  110. |
  111. | The service providers listed here will be automatically loaded on the
  112. | request to your application. Feel free to add your own services to
  113. | this array to grant expanded functionality to your applications.
  114. |
  115. */
  116. 'providers' => [
  117. /*
  118. * Laravel Framework Service Providers...
  119. */
  120. Illuminate\Auth\AuthServiceProvider::class,
  121. Illuminate\Broadcasting\BroadcastServiceProvider::class,
  122. Illuminate\Bus\BusServiceProvider::class,
  123. Illuminate\Cache\CacheServiceProvider::class,
  124. Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class,
  125. Illuminate\Cookie\CookieServiceProvider::class,
  126. Illuminate\Database\DatabaseServiceProvider::class,
  127. Illuminate\Encryption\EncryptionServiceProvider::class,
  128. Illuminate\Filesystem\FilesystemServiceProvider::class,
  129. Illuminate\Foundation\Providers\FoundationServiceProvider::class,
  130. Illuminate\Hashing\HashServiceProvider::class,
  131. Illuminate\Mail\MailServiceProvider::class,
  132. Illuminate\Notifications\NotificationServiceProvider::class,
  133. Illuminate\Pagination\PaginationServiceProvider::class,
  134. Illuminate\Pipeline\PipelineServiceProvider::class,
  135. Illuminate\Queue\QueueServiceProvider::class,
  136. Illuminate\Redis\RedisServiceProvider::class,
  137. Illuminate\Auth\Passwords\PasswordResetServiceProvider::class,
  138. Illuminate\Session\SessionServiceProvider::class,
  139. Illuminate\Translation\TranslationServiceProvider::class,
  140. Illuminate\Validation\ValidationServiceProvider::class,
  141. Illuminate\View\ViewServiceProvider::class,
  142. /*
  143. * Package Service Providers...
  144. */
  145. /*
  146. * Application Service Providers...
  147. */
  148. App\Providers\AppServiceProvider::class,
  149. App\Providers\AuthServiceProvider::class,
  150. // App\Providers\BroadcastServiceProvider::class,
  151. App\Providers\EventServiceProvider::class,
  152. App\Providers\RouteServiceProvider::class,
  153. App\Providers\GettextServiceProvider::class,
  154. App\Providers\ThirdPartyApiServiceServiceProvider::class,
  155. Maatwebsite\Excel\ExcelServiceProvider::class,
  156. SimpleSoftwareIO\QrCode\QrCodeServiceProvider::class,
  157. SocialiteProviders\Manager\ServiceProvider::class,
  158. Eusonlito\LaravelMeta\MetaServiceProvider::class,
  159. Jenssegers\Agent\AgentServiceProvider::class,
  160. Mews\Captcha\CaptchaServiceProvider::class,
  161. ],
  162. /*
  163. |--------------------------------------------------------------------------
  164. | Class Aliases
  165. |--------------------------------------------------------------------------
  166. |
  167. | This array of class aliases will be registered when this application
  168. | is started. However, feel free to register as many as you wish as
  169. | the aliases are "lazy" loaded so they don't hinder performance.
  170. |
  171. */
  172. 'aliases' => [
  173. 'App' => Illuminate\Support\Facades\App::class,
  174. 'Arr' => Illuminate\Support\Arr::class,
  175. 'Artisan' => Illuminate\Support\Facades\Artisan::class,
  176. 'Auth' => Illuminate\Support\Facades\Auth::class,
  177. 'Blade' => Illuminate\Support\Facades\Blade::class,
  178. 'Broadcast' => Illuminate\Support\Facades\Broadcast::class,
  179. 'Bus' => Illuminate\Support\Facades\Bus::class,
  180. 'Cache' => Illuminate\Support\Facades\Cache::class,
  181. 'Config' => Illuminate\Support\Facades\Config::class,
  182. 'Cookie' => Illuminate\Support\Facades\Cookie::class,
  183. 'Crypt' => Illuminate\Support\Facades\Crypt::class,
  184. 'Date' => Illuminate\Support\Facades\Date::class,
  185. 'DB' => Illuminate\Support\Facades\DB::class,
  186. 'Eloquent' => Illuminate\Database\Eloquent\Model::class,
  187. 'Event' => Illuminate\Support\Facades\Event::class,
  188. 'File' => Illuminate\Support\Facades\File::class,
  189. 'Gate' => Illuminate\Support\Facades\Gate::class,
  190. 'Hash' => Illuminate\Support\Facades\Hash::class,
  191. 'Http' => Illuminate\Support\Facades\Http::class,
  192. 'Lang' => Illuminate\Support\Facades\Lang::class,
  193. 'Log' => Illuminate\Support\Facades\Log::class,
  194. 'Mail' => Illuminate\Support\Facades\Mail::class,
  195. 'Notification' => Illuminate\Support\Facades\Notification::class,
  196. 'Password' => Illuminate\Support\Facades\Password::class,
  197. 'Queue' => Illuminate\Support\Facades\Queue::class,
  198. 'Redirect' => Illuminate\Support\Facades\Redirect::class,
  199. // 'Redis' => Illuminate\Support\Facades\Redis::class,
  200. 'Request' => Illuminate\Support\Facades\Request::class,
  201. 'Response' => Illuminate\Support\Facades\Response::class,
  202. 'Route' => Illuminate\Support\Facades\Route::class,
  203. 'Schema' => Illuminate\Support\Facades\Schema::class,
  204. 'Session' => Illuminate\Support\Facades\Session::class,
  205. 'Storage' => Illuminate\Support\Facades\Storage::class,
  206. 'Str' => Illuminate\Support\Str::class,
  207. 'URL' => Illuminate\Support\Facades\URL::class,
  208. 'Validator' => Illuminate\Support\Facades\Validator::class,
  209. 'View' => Illuminate\Support\Facades\View::class,
  210. 'Gettext' => App\Gettext\Facade\Gettext::class,
  211. 'Excel' => Maatwebsite\Excel\Facades\Excel::class,
  212. 'QrCode' => SimpleSoftwareIO\QrCode\Facades\QrCode::class,
  213. 'DataConverter' => App\Helpers\DataConverter::class,
  214. 'Meta' => Eusonlito\LaravelMeta\Facade::class,
  215. 'Agent' => Jenssegers\Agent\Facades\Agent::class,
  216. 'Captcha' => Mews\Captcha\Facades\Captcha::class,
  217. ],
  218. 'api' => [
  219. 'main' => [
  220. 'url' => env('MAIN_API_URL') . '/',
  221. 'ClientId' => env('MAIN_API_CLIENT_ID'),
  222. 'ClientSecret' => env('MAIN_API_CLIENT_SECRET'),
  223. 'BeforeBase64' => env('MAIN_API_BEFORE_BASE64'),
  224. ],
  225. 'sub_first' => [
  226. 'url' => env('SUB_FIRST_API_URL') . '/',
  227. 'ClientId' => env('SUB_FIRST_API_CLIENT_ID'),
  228. 'ClientSecret' => env('SUB_FIRST_API_CLIENT_SECRET'),
  229. 'BeforeBase64' => env('SUB_FIRST_API_BEFORE_BASE64'),
  230. ],
  231. 'sub_second' => [
  232. 'url' => env('SUB_SECOND_API_URL') . '/',
  233. 'ClientId' => env('SUB_SECOND_API_CLIENT_ID'),
  234. 'ClientSecret' => env('SUB_SECOND_API_CLIENT_SECRET'),
  235. 'BeforeBase64' => env('SUB_SECOND_API_BEFORE_BASE64'),
  236. ],
  237. 'sub_third' => [
  238. 'url' => env('SUB_THIRD_API_URL') . '/',
  239. 'ClientId' => env('SUB_THIRD_API_CLIENT_ID'),
  240. 'ClientSecret' => env('SUB_THIRD_API_CLIENT_SECRET'),
  241. 'BeforeBase64' => env('SUB_THIRD_API_BEFORE_BASE64'),
  242. ],
  243. ],
  244. ];