PageRenderTime 51ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 0ms

/config/app.php

https://gitlab.com/ducnv/BTL_CN_WEB
PHP | 249 lines | 92 code | 28 blank | 129 comment | 0 complexity | 9d1cbfb15dd7ce68d677aa85ac5d273c MD5 | raw file
  1. <?php
  2. return [
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Registered Languages
  6. |--------------------------------------------------------------------------
  7. | rtl - Set true for Right-to-Left Support
  8. | wideheader - Some languages require more width for menus. Set true if language broke menus.
  9. |
  10. */
  11. 'language' => [
  12. /*
  13. 'en' => [
  14. 'name' => 'English',
  15. 'rtl' => false,
  16. 'wideheader'=> false
  17. ],
  18. 'tr' => [
  19. 'name' => 'Türkçe',
  20. 'rtl' => false,
  21. 'wideheader'=> true
  22. ],
  23. 'ru' => [
  24. 'name' => 'Русский',
  25. 'rtl' => false,
  26. 'wideheader'=> true
  27. ],
  28. */
  29. ],
  30. /*
  31. |--------------------------------------------------------------------------
  32. | Application Debug Mode
  33. |--------------------------------------------------------------------------
  34. |
  35. | When your application is in debug mode, detailed error messages with
  36. | stack traces will be shown on every error that occurs within your
  37. | application. If disabled, a simple generic error page is shown.
  38. |
  39. */
  40. 'debug' => env('APP_DEBUG', false),
  41. /*
  42. |--------------------------------------------------------------------------
  43. | Application URL
  44. |--------------------------------------------------------------------------
  45. |
  46. | This URL is used by the console to properly generate URLs when using
  47. | the Artisan command line tool. You should set this to the root of
  48. | your application so that it is used when running Artisan tasks.
  49. |
  50. */
  51. 'url' => env('APP_URL', 'http://localhost'),
  52. /*
  53. |--------------------------------------------------------------------------
  54. | Application Timezone
  55. |--------------------------------------------------------------------------
  56. |
  57. | Here you may specify the default timezone for your application, which
  58. | will be used by the PHP date and date-time functions. We have gone
  59. | ahead and set this to a sensible default for you out of the box.
  60. |
  61. */
  62. 'timezone' => env('TIMEZONE', 'Asia/Bangkok'),
  63. /*
  64. |--------------------------------------------------------------------------
  65. | Application Locale Configuration
  66. |--------------------------------------------------------------------------
  67. |
  68. | The application locale determines the default locale that will be used
  69. | by the translation service provider. You are free to set this value
  70. | to any of the locales which will be supported by the application.
  71. |
  72. */
  73. 'locale' => 'en',
  74. /*
  75. |--------------------------------------------------------------------------
  76. | Application Fallback Locale
  77. |--------------------------------------------------------------------------
  78. |
  79. | The fallback locale determines the locale to use when the current one
  80. | is not available. You may change the value to correspond to any of
  81. | the language folders that are provided through your application.
  82. |
  83. */
  84. 'fallback_locale' => 'en',
  85. /*
  86. |--------------------------------------------------------------------------
  87. | Encryption Key
  88. |--------------------------------------------------------------------------
  89. |
  90. | This key is used by the Illuminate encrypter service and should be set
  91. | to a random, 32 character string, otherwise these encrypted strings
  92. | will not be safe. Please do this before deploying an application!
  93. |
  94. */
  95. 'env' => env('APP_ENV', 'production'),
  96. 'key' => env('APP_KEY', 'SomeRandomString'),
  97. 'cipher' => 'AES-256-CBC',
  98. /*
  99. |--------------------------------------------------------------------------
  100. | Logging Configuration
  101. |--------------------------------------------------------------------------
  102. |
  103. | Here you may configure the log settings for your application. Out of
  104. | the box, Laravel uses the Monolog PHP logging library. This gives
  105. | you a variety of powerful log handlers / formatters to utilize.
  106. |
  107. | Available Settings: "single", "daily", "syslog", "errorlog"
  108. |
  109. */
  110. 'log' => 'single',
  111. /*
  112. |--------------------------------------------------------------------------
  113. | Autoloaded Service Providers
  114. |--------------------------------------------------------------------------
  115. |
  116. | The service providers listed here will be automatically loaded on the
  117. | request to your application. Feel free to add your own services to
  118. | this array to grant expanded functionality to your applications.
  119. |
  120. */
  121. 'providers' => [
  122. /*
  123. * Laravel Framework Service Providers...
  124. */
  125. Illuminate\Auth\AuthServiceProvider::class,
  126. Illuminate\Broadcasting\BroadcastServiceProvider::class,
  127. Illuminate\Bus\BusServiceProvider::class,
  128. Illuminate\Cache\CacheServiceProvider::class,
  129. Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class,
  130. Illuminate\Cookie\CookieServiceProvider::class,
  131. Illuminate\Database\DatabaseServiceProvider::class,
  132. Illuminate\Encryption\EncryptionServiceProvider::class,
  133. Illuminate\Filesystem\FilesystemServiceProvider::class,
  134. Illuminate\Foundation\Providers\FoundationServiceProvider::class,
  135. Illuminate\Hashing\HashServiceProvider::class,
  136. Illuminate\Mail\MailServiceProvider::class,
  137. Illuminate\Pagination\PaginationServiceProvider::class,
  138. Illuminate\Pipeline\PipelineServiceProvider::class,
  139. Illuminate\Queue\QueueServiceProvider::class,
  140. Illuminate\Redis\RedisServiceProvider::class,
  141. Illuminate\Auth\Passwords\PasswordResetServiceProvider::class,
  142. Illuminate\Session\SessionServiceProvider::class,
  143. Illuminate\Translation\TranslationServiceProvider::class,
  144. Illuminate\Validation\ValidationServiceProvider::class,
  145. Illuminate\View\ViewServiceProvider::class,
  146. /**
  147. * Application Service Providers...
  148. */
  149. App\Providers\AppServiceProvider::class,
  150. App\Providers\AuthServiceProvider::class,
  151. App\Providers\EventServiceProvider::class,
  152. App\Providers\RouteServiceProvider::class,
  153. /**
  154. * Third party
  155. */
  156. yajra\Datatables\DatatablesServiceProvider::class,
  157. Intervention\Image\ImageServiceProvider::class,
  158. Laravel\Socialite\SocialiteServiceProvider::class,
  159. SocialiteProviders\Manager\ServiceProvider::class,
  160. Nathanmac\Utilities\Parser\ParserServiceProvider::class,
  161. Jenssegers\Mongodb\MongodbServiceProvider::class,
  162. Collective\Html\HtmlServiceProvider::class,
  163. Intervention\Image\ImageServiceProvider::class,
  164. ],
  165. /*
  166. |--------------------------------------------------------------------------
  167. | Class Aliases
  168. |--------------------------------------------------------------------------
  169. |
  170. | This array of class aliases will be registered when this application
  171. | is started. However, feel free to register as many as you wish as
  172. | the aliases are "lazy" loaded so they don't hinder performance.
  173. |
  174. */
  175. 'aliases' => [
  176. 'App' => Illuminate\Support\Facades\App::class,
  177. 'Artisan' => Illuminate\Support\Facades\Artisan::class,
  178. 'Auth' => Illuminate\Support\Facades\Auth::class,
  179. 'Blade' => Illuminate\Support\Facades\Blade::class,
  180. 'Bus' => Illuminate\Support\Facades\Bus::class,
  181. 'Cache' => Illuminate\Support\Facades\Cache::class,
  182. 'Config' => Illuminate\Support\Facades\Config::class,
  183. 'Cookie' => Illuminate\Support\Facades\Cookie::class,
  184. 'Crypt' => Illuminate\Support\Facades\Crypt::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. 'Input' => Illuminate\Support\Facades\Input::class,
  192. 'Inspiring' => Illuminate\Foundation\Inspiring::class,
  193. 'Lang' => Illuminate\Support\Facades\Lang::class,
  194. 'Log' => Illuminate\Support\Facades\Log::class,
  195. 'Mail' => Illuminate\Support\Facades\Mail::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. 'URL' => Illuminate\Support\Facades\URL::class,
  207. 'Validator' => Illuminate\Support\Facades\Validator::class,
  208. 'View' => Illuminate\Support\Facades\View::class,
  209. /**
  210. * Third party
  211. */
  212. 'Html' => Collective\Html\FormFacade::class,
  213. 'Datatables' => yajra\Datatables\Datatables::class,
  214. 'Socialite' => Laravel\Socialite\Facades\Socialite::class,
  215. 'Image' => Intervention\Image\Facades\Image::class,
  216. 'Parser' => Nathanmac\Utilities\Parser\Facades\Parser::class,
  217. 'Form' => Collective\Html\FormFacade::class,
  218. 'Html' => Collective\Html\HtmlFacade::class,
  219. 'Image' => Intervention\Image\Facades\Image::class
  220. ],
  221. ];