ide-helper.php 5.9 KB

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