|
190 | 190 | '--with-jetstream-inertia',
|
191 | 191 | '--with-strict-mode'
|
192 | 192 | ];
|
193 |
| -$withFilament = false; |
194 |
| -$withJetstramLivewire = false; |
195 |
| -$withJetstramInertia = false; |
196 |
| -$withStrictMode = false; |
| 193 | +$withFilament = false; |
| 194 | +$withJetstreamLivewire = false; |
| 195 | +$withJetstreamInertia = false; |
| 196 | +$withStrictMode = false; |
197 | 197 | for($i=2; $i<$argc; $i++) {
|
198 | 198 | switch($argv[$i]) {
|
199 | 199 | case '--with-filament':
|
|
204 | 204 | $withJetstreamLivewire = true;
|
205 | 205 | break;
|
206 | 206 | case '--with-jetstream-inertia':
|
207 |
| - $withJetstramInertia = true; |
| 207 | + $withJetstreamInertia = true; |
208 | 208 | break;
|
209 | 209 | case '--with-strict-mode':
|
210 | 210 | $withStrictMode = true;
|
|
214 | 214 | }
|
215 | 215 | }
|
216 | 216 |
|
217 |
| -if ($withFilament && ($withJetstreamLivewire || $withJetstramInertia)) { |
| 217 | +if ($withFilament && ($withJetstreamLivewire || $withJetstreamInertia)) { |
218 | 218 | die("Please choose either Filament or Jetstream support but not both\n");
|
219 | 219 | }
|
220 |
| -if ($withJetstreamLivewire && $withJetstramInertia) { |
| 220 | +if ($withJetstreamLivewire && $withJetstreamInertia) { |
221 | 221 | die("Please choose either Jetstream-Livewire or Jetstream-Inertia support but not both\n");
|
222 | 222 | }
|
223 | 223 |
|
|
233 | 233 | }
|
234 | 234 | print "{$color}Installing Laravel into [$targetDir]{$noColor}\n";
|
235 | 235 | $rc = system($cmd);
|
236 |
| -if (!$rc === false) { |
| 236 | +if ($rc === false) { |
237 | 237 | die("System command [$cmd] failed ... exiting\n");
|
238 | 238 | }
|
239 | 239 |
|
|
248 | 248 | $packages = array_merge($packages, $packagesJetstream);
|
249 | 249 | $postProcessSteps = array_merge($postProcessSteps, $postProcessStepsJetstreamInertia);
|
250 | 250 | $instructions = array_merge($instructions, $instructionsJetstream);
|
251 |
| -} elseif ($withJetstramInertia) { |
| 251 | +} elseif ($withJetstreamInertia) { |
252 | 252 | $packages = array_merge($packages, $packagesJetstream);
|
253 | 253 | $postProcessSteps = array_merge($postProcessSteps, $postProcessStepsJetstreamInertia);
|
254 | 254 | $instructions = array_merge($instructions, $instructionsJetstream);
|
|
0 commit comments