We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2015482 commit 0a0c778Copy full SHA for 0a0c778
packages/core/src/Installer/Installers/PluginInstaller.php
@@ -269,17 +269,16 @@ protected function createNewPanel(): ?string
269
required: true
270
);
271
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
-
+ try {
+ Artisan::call('make:filament-panel', [
+ 'id' => $panelName,
+ '--force' => true,
+ ]);
+ } catch (FailureCommandOutput) {
+ warning("Failed to create panel: {$panelName}");
282
return null;
+ }
+ return $panelName;
283
}
284
285
protected function registerPluginsInPanel(array $pluginClasses, string $panelPath): void
0 commit comments