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