PageRenderTime 57ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 1ms

/config/app.php

https://gitlab.com/php2laravel/php-project-boost
PHP | 246 lines | 106 code | 34 blank | 106 comment | 0 complexity | 79c371b6f8b858ad66469140db5c28b8 MD5 | raw file
  1. <?php
  2. return [
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Application Debug Mode
  6. |--------------------------------------------------------------------------
  7. |
  8. | When your application is in debug mode, detailed error messages with
  9. | stack traces will be shown on every error that occurs within your
  10. | application. If disabled, a simple generic error page is shown.
  11. |
  12. */
  13. 'debug' => env('APP_DEBUG', true),
  14. /*
  15. |--------------------------------------------------------------------------
  16. | Application URL
  17. |--------------------------------------------------------------------------
  18. |
  19. | This URL is used by the console to properly generate URLs when using
  20. | the Artisan command line tool. You should set this to the root of
  21. | your application so that it is used when running Artisan tasks.
  22. |
  23. */
  24. 'url' => 'http://localhost',
  25. /*
  26. |--------------------------------------------------------------------------
  27. | Application Timezone
  28. |--------------------------------------------------------------------------
  29. |
  30. | Here you may specify the default timezone for your application, which
  31. | will be used by the PHP date and date-time functions. We have gone
  32. | ahead and set this to a sensible default for you out of the box.
  33. |
  34. */
  35. 'timezone' => 'UTC',
  36. /*
  37. |--------------------------------------------------------------------------
  38. | Application Locale Configuration
  39. |--------------------------------------------------------------------------
  40. |
  41. | The application locale determines the default locale that will be used
  42. | by the translation service provider. You are free to set this value
  43. | to any of the locales which will be supported by the application.
  44. |
  45. */
  46. 'locale' => 'en',
  47. /*
  48. |--------------------------------------------------------------------------
  49. | Application Fallback Locale
  50. |--------------------------------------------------------------------------
  51. |
  52. | The fallback locale determines the locale to use when the current one
  53. | is not available. You may change the value to correspond to any of
  54. | the language folders that are provided through your application.
  55. |
  56. */
  57. 'fallback_locale' => 'en',
  58. /*
  59. |--------------------------------------------------------------------------
  60. | Encryption Key
  61. |--------------------------------------------------------------------------
  62. |
  63. | This key is used by the Illuminate encrypter service and should be set
  64. | to a random, 32 character string, otherwise these encrypted strings
  65. | will not be safe. Please do this before deploying an application!
  66. |
  67. */
  68. 'key' => env('APP_KEY', 'xgvCEH59SJ2LgYUwfG7wExJBwvp54wdJ'),
  69. 'cipher' => 'AES-256-CBC',
  70. /*
  71. |--------------------------------------------------------------------------
  72. | Logging Configuration
  73. |--------------------------------------------------------------------------
  74. |
  75. | Here you may configure the log settings for your application. Out of
  76. | the box, Laravel uses the Monolog PHP logging library. This gives
  77. | you a variety of powerful log handlers / formatters to utilize.
  78. |
  79. | Available Settings: "single", "daily", "syslog", "errorlog"
  80. |
  81. */
  82. 'log' => 'single',
  83. /*
  84. |--------------------------------------------------------------------------
  85. | Autoloaded Service Providers
  86. |--------------------------------------------------------------------------
  87. |
  88. | The service providers listed here will be automatically loaded on the
  89. | request to your application. Feel free to add your own services to
  90. | this array to grant expanded functionality to your applications.
  91. |
  92. */
  93. 'providers' => [
  94. /*
  95. * Laravel Framework Service Providers...
  96. */
  97. Illuminate\Foundation\Providers\ArtisanServiceProvider::class,
  98. Illuminate\Auth\AuthServiceProvider::class,
  99. Illuminate\Broadcasting\BroadcastServiceProvider::class,
  100. Illuminate\Bus\BusServiceProvider::class,
  101. Illuminate\Cache\CacheServiceProvider::class,
  102. Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class,
  103. Illuminate\Routing\ControllerServiceProvider::class,
  104. Illuminate\Cookie\CookieServiceProvider::class,
  105. Illuminate\Database\DatabaseServiceProvider::class,
  106. Illuminate\Encryption\EncryptionServiceProvider::class,
  107. Illuminate\Filesystem\FilesystemServiceProvider::class,
  108. Illuminate\Foundation\Providers\FoundationServiceProvider::class,
  109. Illuminate\Hashing\HashServiceProvider::class,
  110. Illuminate\Mail\MailServiceProvider::class,
  111. Illuminate\Pagination\PaginationServiceProvider::class,
  112. Illuminate\Pipeline\PipelineServiceProvider::class,
  113. Illuminate\Queue\QueueServiceProvider::class,
  114. Illuminate\Redis\RedisServiceProvider::class,
  115. Illuminate\Auth\Passwords\PasswordResetServiceProvider::class,
  116. Illuminate\Session\SessionServiceProvider::class,
  117. Illuminate\Translation\TranslationServiceProvider::class,
  118. Illuminate\Validation\ValidationServiceProvider::class,
  119. Illuminate\View\ViewServiceProvider::class,
  120. Illuminate\Html\HtmlServiceProvider::class,
  121. Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class,
  122. Intervention\Image\ImageServiceProvider::class,
  123. League\ColorExtractor\Laravel\ColorExtractorServiceProvider::class,
  124. Weblee\Mandrill\MandrillServiceProvider::class,
  125. Laracasts\Flash\FlashServiceProvider::class,
  126. //Laravel\Cashier\CashierServiceProvider::class,
  127. /*
  128. * Application Service Providers...
  129. */
  130. App\Providers\AppServiceProvider::class,
  131. App\Providers\AuthServiceProvider::class,
  132. App\Providers\EventServiceProvider::class,
  133. App\Providers\RouteServiceProvider::class,
  134. ],
  135. /*
  136. |--------------------------------------------------------------------------
  137. | Class Aliases
  138. |--------------------------------------------------------------------------
  139. |
  140. | This array of class aliases will be registered when this application
  141. | is started. However, feel free to register as many as you wish as
  142. | the aliases are "lazy" loaded so they don't hinder performance.
  143. |
  144. */
  145. 'aliases' => [
  146. 'App' => Illuminate\Support\Facades\App::class,
  147. 'Artisan' => Illuminate\Support\Facades\Artisan::class,
  148. 'Auth' => Illuminate\Support\Facades\Auth::class,
  149. 'Blade' => Illuminate\Support\Facades\Blade::class,
  150. 'Bus' => Illuminate\Support\Facades\Bus::class,
  151. 'Cache' => Illuminate\Support\Facades\Cache::class,
  152. 'config' => Illuminate\Support\Facades\Config::class,
  153. 'Cookie' => Illuminate\Support\Facades\Cookie::class,
  154. 'Crypt' => Illuminate\Support\Facades\Crypt::class,
  155. 'DB' => Illuminate\Support\Facades\DB::class,
  156. 'Eloquent' => Illuminate\Database\Eloquent\Model::class,
  157. 'Event' => Illuminate\Support\Facades\Event::class,
  158. 'File' => Illuminate\Support\Facades\File::class,
  159. 'Gate' => Illuminate\Support\Facades\Gate::class,
  160. 'Hash' => Illuminate\Support\Facades\Hash::class,
  161. 'Input' => Illuminate\Support\Facades\Input::class,
  162. 'Inspiring' => Illuminate\Foundation\Inspiring::class,
  163. 'Lang' => Illuminate\Support\Facades\Lang::class,
  164. 'Log' => Illuminate\Support\Facades\Log::class,
  165. 'Mail' => Illuminate\Support\Facades\Mail::class,
  166. 'Password' => Illuminate\Support\Facades\Password::class,
  167. 'Queue' => Illuminate\Support\Facades\Queue::class,
  168. 'Redirect' => Illuminate\Support\Facades\Redirect::class,
  169. 'Redis' => Illuminate\Support\Facades\Redis::class,
  170. 'Request' => Illuminate\Support\Facades\Request::class,
  171. 'Response' => Illuminate\Support\Facades\Response::class,
  172. 'Route' => Illuminate\Support\Facades\Route::class,
  173. 'Schema' => Illuminate\Support\Facades\Schema::class,
  174. 'Session' => Illuminate\Support\Facades\Session::class,
  175. 'Storage' => Illuminate\Support\Facades\Storage::class,
  176. 'URL' => Illuminate\Support\Facades\URL::class,
  177. 'Validator' => Illuminate\Support\Facades\Validator::class,
  178. 'View' => Illuminate\Support\Facades\View::class,
  179. 'Form' => Illuminate\Html\FormFacade::class,
  180. 'Html' => Illuminate\Html\HtmlFacade::class,
  181. 'Image' => Intervention\Image\Facades\Image::class,
  182. 'ColorExtractor' => League\ColorExtractor\Laravel\ColorExtractorFacade::class,
  183. 'MandrillMail' => Weblee\Mandrill\MandrillFacade::class,
  184. 'Flash' => Laracasts\Flash\Flash::class,
  185. //'Cashier' => Laravel\Cashier\CashierServiceProvider::class,
  186. ],
  187. "experience" => [
  188. //edit experience-score here
  189. //use config('app.experience.upload'); to get this variable
  190. 'refer' => 250,
  191. 'upload' => 50,
  192. 'comment' => 10,
  193. 'like' => 5,
  194. ],
  195. "ranking" => [
  196. //edit ranking-score here
  197. //use config('app.ranking'); to get this variable
  198. 'rookie' => 100,
  199. 'beginner' => 250,
  200. 'semi_pro' => 500,
  201. 'professional' => 1000,
  202. 'expert' => 5000,
  203. ],
  204. "badges" => [
  205. //edit badge-info here
  206. //use config('app.badges'); to get this variable
  207. 'founding_member' => 100,
  208. 'founding_member_name' => 'Founding Member',
  209. 'first_upload' => 'First Upload',
  210. 'referance_badge_name' => 'Referance Badge',
  211. ],
  212. ];