ide-helper.php 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. <?php
  2. return array(
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Filename & Format
  6. |--------------------------------------------------------------------------
  7. |
  8. | The default filename (without extension) and the format (php or json)
  9. |
  10. */
  11. 'filename' => '_ide_helper',
  12. 'format' => 'php',
  13. /*
  14. |--------------------------------------------------------------------------
  15. | Fluent helpers
  16. |--------------------------------------------------------------------------
  17. |
  18. | Set to true to generate commonly used Fluent methods
  19. |
  20. */
  21. 'include_fluent' => false,
  22. /*
  23. |--------------------------------------------------------------------------
  24. | Helper files to include
  25. |--------------------------------------------------------------------------
  26. |
  27. | Include helper files. By default not included, but can be toggled with the
  28. | -- helpers (-H) option. Extra helper files can be included.
  29. |
  30. */
  31. 'include_helpers' => false,
  32. 'helper_files' => array(
  33. base_path().'/vendor/laravel/framework/src/Illuminate/Support/helpers.php',
  34. ),
  35. /*
  36. |--------------------------------------------------------------------------
  37. | Model locations to include
  38. |--------------------------------------------------------------------------
  39. |
  40. | Define in which directories the ide-helper:models command should look
  41. | for models.
  42. |
  43. */
  44. 'model_locations' => array(
  45. 'app',
  46. ),
  47. /*
  48. |--------------------------------------------------------------------------
  49. | Extra classes
  50. |--------------------------------------------------------------------------
  51. |
  52. | These implementations are not really extended, but called with magic functions
  53. |
  54. */
  55. 'extra' => array(
  56. 'Eloquent' => array('Illuminate\Database\Eloquent\Builder', 'Illuminate\Database\Query\Builder'),
  57. 'Session' => array('Illuminate\Session\Store'),
  58. ),
  59. 'magic' => array(
  60. 'Log' => array(
  61. 'debug' => 'Monolog\Logger::addDebug',
  62. 'info' => 'Monolog\Logger::addInfo',
  63. 'notice' => 'Monolog\Logger::addNotice',
  64. 'warning' => 'Monolog\Logger::addWarning',
  65. 'error' => 'Monolog\Logger::addError',
  66. 'critical' => 'Monolog\Logger::addCritical',
  67. 'alert' => 'Monolog\Logger::addAlert',
  68. 'emergency' => 'Monolog\Logger::addEmergency',
  69. )
  70. ),
  71. /*
  72. |--------------------------------------------------------------------------
  73. | Interface implementations
  74. |--------------------------------------------------------------------------
  75. |
  76. | These interfaces will be replaced with the implementing class. Some interfaces
  77. | are detected by the helpers, others can be listed below.
  78. |
  79. */
  80. 'interfaces' => array(
  81. ),
  82. /*
  83. |--------------------------------------------------------------------------
  84. | Support for custom DB types
  85. |--------------------------------------------------------------------------
  86. |
  87. | This setting allow you to map any custom database type (that you may have
  88. | created using CREATE TYPE statement or imported using database plugin
  89. | / extension to a Doctrine type.
  90. |
  91. | Each key in this array is a name of the Doctrine2 DBAL Platform. Currently valid names are:
  92. | 'postgresql', 'db2', 'drizzle', 'mysql', 'oracle', 'sqlanywhere', 'sqlite', 'mssql'
  93. |
  94. | This name is returned by getName() method of the specific Doctrine/DBAL/Platforms/AbstractPlatform descendant
  95. |
  96. | The value of the array is an array of type mappings. Key is the name of the custom type,
  97. | (for example, "jsonb" from Postgres 9.4) and the value is the name of the corresponding Doctrine2 type (in
  98. | our case it is 'json_array'. Doctrine types are listed here:
  99. | http://doctrine-dbal.readthedocs.org/en/latest/reference/types.html
  100. |
  101. | So to support jsonb in your models when working with Postgres, just add the following entry to the array below:
  102. |
  103. | "postgresql" => array(
  104. | "jsonb" => "json_array",
  105. | ),
  106. |
  107. */
  108. 'custom_db_types' => array(
  109. ),
  110. /*
  111. |--------------------------------------------------------------------------
  112. | Support for camel cased models
  113. |--------------------------------------------------------------------------
  114. |
  115. | There are some Laravel packages (such as Eloquence) that allow for accessing
  116. | Eloquent model properties via camel case, instead of snake case.
  117. |
  118. | Enabling this option will support these packages by saving all model
  119. | properties as camel case, instead of snake case.
  120. |
  121. | For example, normally you would see this:
  122. |
  123. | * @property \Carbon\Carbon $created_at
  124. | * @property \Carbon\Carbon $updated_at
  125. |
  126. | With this enabled, the properties will be this:
  127. |
  128. | * @property \Carbon\Carbon $createdAt
  129. | * @property \Carbon\Carbon $updatedAt
  130. |
  131. | Note, it is currently an all-or-nothing option.
  132. |
  133. */
  134. 'model_camel_case_properties' => false,
  135. /*
  136. |--------------------------------------------------------------------------
  137. | Property Casts
  138. |--------------------------------------------------------------------------
  139. |
  140. | Cast the given "real type" to the given "type".
  141. |
  142. */
  143. 'type_overrides' => array(
  144. 'integer' => 'int',
  145. 'boolean' => 'bool',
  146. ),
  147. );