Skip to content

Commit 304fe49

Browse files
authored
Initial Work: Filament Widget Generation (#153)
- Filament Widget Generation works for most of the default options - TODO: Test widget generation if the option to generate inside a resource is selected. - TODO: Test with generation inside Clusters - TODO: Test generation when selecting a custom Livewire component location - Fixes #152
2 parents 9455b66 + ed8c284 commit 304fe49

File tree

2 files changed

+187
-187
lines changed

2 files changed

+187
-187
lines changed

src/Commands/ModuleMakeFilamentPageCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ protected function configurePagesLocation(): void
159159

160160
$panelModules = FilamentModules::getModulePanels($this->argument('module'));
161161
if (empty($panelModules) || ! collect($panelModules)->contains(fn (
162-
Panel | Cluster $panel
162+
Panel $panel
163163
) => $panel->getId() === $this->panel->getId())) {
164164
$this->pagesNamespace = $this->getModule()->appNamespace('Filament\\Pages');
165165
$this->pagesDirectory = $this->getModule()->appPath('Filament' . DIRECTORY_SEPARATOR . 'Pages' . DIRECTORY_SEPARATOR);

0 commit comments

Comments
 (0)