ignition.php 9.4 KB

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