ignition.php 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. <?php
  2. use Spatie\Ignition\Solutions\SolutionProviders\BadMethodCallSolutionProvider;
  3. use Spatie\Ignition\Solutions\SolutionProviders\MergeConflictSolutionProvider;
  4. use Spatie\Ignition\Solutions\SolutionProviders\UndefinedPropertySolutionProvider;
  5. use Spatie\LaravelIgnition\Solutions\SolutionProviders\DefaultDbNameSolutionProvider;
  6. use Spatie\LaravelIgnition\Solutions\SolutionProviders\GenericLaravelExceptionSolutionProvider;
  7. use Spatie\LaravelIgnition\Solutions\SolutionProviders\IncorrectValetDbCredentialsSolutionProvider;
  8. use Spatie\LaravelIgnition\Solutions\SolutionProviders\InvalidRouteActionSolutionProvider;
  9. use Spatie\LaravelIgnition\Solutions\SolutionProviders\MissingAppKeySolutionProvider;
  10. use Spatie\LaravelIgnition\Solutions\SolutionProviders\MissingColumnSolutionProvider;
  11. use Spatie\LaravelIgnition\Solutions\SolutionProviders\MissingImportSolutionProvider;
  12. use Spatie\LaravelIgnition\Solutions\SolutionProviders\MissingLivewireComponentSolutionProvider;
  13. use Spatie\LaravelIgnition\Solutions\SolutionProviders\MissingMixManifestSolutionProvider;
  14. use Spatie\LaravelIgnition\Solutions\SolutionProviders\RunningLaravelDuskInProductionProvider;
  15. use Spatie\LaravelIgnition\Solutions\SolutionProviders\TableNotFoundSolutionProvider;
  16. use Spatie\LaravelIgnition\Solutions\SolutionProviders\UndefinedViewVariableSolutionProvider;
  17. use Spatie\LaravelIgnition\Solutions\SolutionProviders\UnknownValidationSolutionProvider;
  18. use Spatie\LaravelIgnition\Solutions\SolutionProviders\ViewNotFoundSolutionProvider;
  19. return [
  20. /*
  21. |--------------------------------------------------------------------------
  22. | Editor
  23. |--------------------------------------------------------------------------
  24. |
  25. | Choose your preferred editor to use when clicking any edit button.
  26. |
  27. | Supported: "phpstorm", "vscode", "vscode-insiders", "textmate", "emacs",
  28. | "sublime", "atom", "nova", "macvim", "idea", "netbeans",
  29. | "xdebug"
  30. |
  31. */
  32. 'editor' => env('IGNITION_EDITOR', 'phpstorm'),
  33. /*
  34. |--------------------------------------------------------------------------
  35. | Theme
  36. |--------------------------------------------------------------------------
  37. |
  38. | Here you may specify which theme Ignition should use.
  39. |
  40. | Supported: "light", "dark", "auto"
  41. |
  42. */
  43. 'theme' => env('IGNITION_THEME', 'auto'),
  44. /*
  45. |--------------------------------------------------------------------------
  46. | Sharing
  47. |--------------------------------------------------------------------------
  48. |
  49. | You can share local errors with colleagues or others around the world.
  50. | Sharing is completely free and doesn't require an account on Flare.
  51. |
  52. | If necessary, you can completely disable sharing below.
  53. |
  54. */
  55. 'enable_share_button' => env('IGNITION_SHARING_ENABLED', true),
  56. /*
  57. |--------------------------------------------------------------------------
  58. | Register Ignition commands
  59. |--------------------------------------------------------------------------
  60. |
  61. | Ignition comes with an additional make command that lets you create
  62. | new solution classes more easily. To keep your default Laravel
  63. | installation clean, this command is not registered by default.
  64. |
  65. | You can enable the command registration below.
  66. |
  67. */
  68. 'register_commands' => env('REGISTER_IGNITION_COMMANDS', false),
  69. /*
  70. |--------------------------------------------------------------------------
  71. | Solution Providers
  72. |--------------------------------------------------------------------------
  73. |
  74. | You may specify a list of solution providers (as fully qualified class
  75. | names) that shouldn't be loaded. Ignition will ignore these classes
  76. | and possible solutions provided by them will never be displayed.
  77. |
  78. */
  79. 'solution_providers' => [
  80. // from spatie/ignition
  81. BadMethodCallSolutionProvider::class,
  82. MergeConflictSolutionProvider::class,
  83. UndefinedPropertySolutionProvider::class,
  84. // from spatie/laravel-ignition
  85. IncorrectValetDbCredentialsSolutionProvider::class,
  86. MissingAppKeySolutionProvider::class,
  87. DefaultDbNameSolutionProvider::class,
  88. TableNotFoundSolutionProvider::class,
  89. MissingImportSolutionProvider::class,
  90. InvalidRouteActionSolutionProvider::class,
  91. ViewNotFoundSolutionProvider::class,
  92. RunningLaravelDuskInProductionProvider::class,
  93. MissingColumnSolutionProvider::class,
  94. UnknownValidationSolutionProvider::class,
  95. MissingMixManifestSolutionProvider::class,
  96. MissingLivewireComponentSolutionProvider::class,
  97. UndefinedViewVariableSolutionProvider::class,
  98. GenericLaravelExceptionSolutionProvider::class,
  99. ],
  100. /*
  101. |--------------------------------------------------------------------------
  102. | Ignored Solution Providers
  103. |--------------------------------------------------------------------------
  104. |
  105. | You may specify a list of solution providers (as fully qualified class
  106. | names) that shouldn't be loaded. Ignition will ignore these classes
  107. | and possible solutions provided by them will never be displayed.
  108. |
  109. */
  110. 'ignored_solution_providers' => [
  111. ],
  112. /*
  113. |--------------------------------------------------------------------------
  114. | Runnable Solutions
  115. |--------------------------------------------------------------------------
  116. |
  117. | Some solutions that Ignition displays are runnable and can perform
  118. | various tasks. By default, runnable solutions are enabled when your app
  119. | has debug mode enabled. You may also fully disable this feature.
  120. |
  121. | Default: env('IGNITION_ENABLE_RUNNABLE_SOLUTIONS', env('APP_DEBUG', false))
  122. |
  123. */
  124. 'enable_runnable_solutions' => env('IGNITION_ENABLE_RUNNABLE_SOLUTIONS', env('APP_DEBUG', false)),
  125. /*
  126. |--------------------------------------------------------------------------
  127. | Remote Path Mapping
  128. |--------------------------------------------------------------------------
  129. |
  130. | If you are using a remote dev server, like Laravel Homestead, Docker, or
  131. | even a remote VPS, it will be necessary to specify your path mapping.
  132. |
  133. | Leaving one, or both of these, empty or null will not trigger the remote
  134. | URL changes and Ignition will treat your editor links as local files.
  135. |
  136. | "remote_sites_path" is an absolute base path for your sites or projects
  137. | in Homestead, Vagrant, Docker, or another remote development server.
  138. |
  139. | Example value: "/home/vagrant/Code"
  140. |
  141. | "local_sites_path" is an absolute base path for your sites or projects
  142. | on your local computer where your IDE or code editor is running on.
  143. |
  144. | Example values: "/Users/<name>/Code", "C:\Users\<name>\Documents\Code"
  145. |
  146. */
  147. 'remote_sites_path' => env('IGNITION_REMOTE_SITES_PATH', base_path()),
  148. 'local_sites_path' => env('IGNITION_LOCAL_SITES_PATH', ''),
  149. /*
  150. |--------------------------------------------------------------------------
  151. | Housekeeping Endpoint Prefix
  152. |--------------------------------------------------------------------------
  153. |
  154. | Ignition registers a couple of routes when it is enabled. Below you may
  155. | specify a route prefix that will be used to host all internal links.
  156. |
  157. */
  158. 'housekeeping_endpoint_prefix' => '_ignition',
  159. /*
  160. |--------------------------------------------------------------------------
  161. | Settings File
  162. |--------------------------------------------------------------------------
  163. |
  164. | Ignition allows you to save your settings to a specific global file.
  165. |
  166. | If no path is specified, a file with settings will be saved to the user's
  167. | home directory. The directory depends on the OS and its settings but it's
  168. | typically `~/.ignition.json`. In this case, the settings will be applied
  169. | to all of your projects where Ignition is used and the path is not
  170. | specified.
  171. |
  172. | However, if you want to store your settings on a project basis, or you
  173. | want to keep them in another directory, you can specify a path where
  174. | the settings file will be saved. The path should be an existing directory
  175. | with correct write access.
  176. | For example, create a new `ignition` folder in the storage directory and
  177. | use `storage_path('ignition')` as the `settings_file_path`.
  178. |
  179. | Default value: '' (empty string)
  180. */
  181. 'settings_file_path' => '',
  182. ];