Skip to content

Commit 0a0c778

Browse files
Update PluginInstaller.php
1 parent 2015482 commit 0a0c778

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

packages/core/src/Installer/Installers/PluginInstaller.php

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -269,17 +269,16 @@ protected function createNewPanel(): ?string
269269
required: true
270270
);
271271

272-
try {
273-
$this->generatePanel(
274-
id: $panelName,
275-
placeholderId: 'app',
276-
);
277-
} catch (FailureCommandOutput) {
278-
warning("Failed to create panel: {$panelName}");
279-
return 'failed';
280-
}
281-
272+
try {
273+
Artisan::call('make:filament-panel', [
274+
'id' => $panelName,
275+
'--force' => true,
276+
]);
277+
} catch (FailureCommandOutput) {
278+
warning("Failed to create panel: {$panelName}");
282279
return null;
280+
}
281+
return $panelName;
283282
}
284283

285284
protected function registerPluginsInPanel(array $pluginClasses, string $panelPath): void

0 commit comments

Comments
 (0)