New panel custom file structure discovery problem

I created a new panel and set up a custom folder structure for the panel to discover the files. I used a wildcard because some folders have different names. The problem is that if the Resources, Pages, or Widgets folders are missing, it throws an error. Additionally, I generated a new resource, placed everything in the correct folders, but it still throws an error saying that it cannot find the file, even though the file exists. Has anyone faced this issue before? I am using the discovery function like this:
->discoverResources(
in: app_path('Domain/*/Filament/Resources'),
for: 'App\\Domain\\*\\Filament\\Resources'
)
->discoverPages(
in: app_path('Domain/*/Filament/Resources/*/Pages'),
for: 'App\\Domain\\*\\Filament\\Resources\\*\\Pages'
)
->discoverWidgets(
in: app_path('Domain/*/Filament/Resources/*/Widgets'),
for: 'App\\Domain\\*\\Filament\\Resources\\*\\Widgets'
)
->discoverResources(
in: app_path('Domain/*/Filament/Resources'),
for: 'App\\Domain\\*\\Filament\\Resources'
)
->discoverPages(
in: app_path('Domain/*/Filament/Resources/*/Pages'),
for: 'App\\Domain\\*\\Filament\\Resources\\*\\Pages'
)
->discoverWidgets(
in: app_path('Domain/*/Filament/Resources/*/Widgets'),
for: 'App\\Domain\\*\\Filament\\Resources\\*\\Widgets'
)
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server