© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•13mo ago•
3 replies
Gert Timmerman

Wrong panel route name for resource

I have two panels: finance and orders. I have an OrderResource in the order panel. I defined the resource in the OrderPanelProvider via the discoverResources (
->discoverResources(in: app_path('Filament/Order/Resources'), for: 'App\\Filament\\Order\\Resources'
->discoverResources(in: app_path('Filament/Order/Resources'), for: 'App\\Filament\\Order\\Resources'
) and the OrderResource is in the right namespace:
namespace App\Filament\Order\Resources;
namespace App\Filament\Order\Resources;
. When I call the command
OrderResource::getUrl('index')
OrderResource::getUrl('index')
or for testing
Livewire::test(OrderResource\Pages\ListOrders::class)
Livewire::test(OrderResource\Pages\ListOrders::class)
then I get the Exception
Illuminate\View\ViewException: Route [filament.finance.resources.orders.index] not defined.
Illuminate\View\ViewException: Route [filament.finance.resources.orders.index] not defined.
. Is there anything i am doing wrong?
Solution
Found the solution:

Filament::setCurrentPanel(
   Filament::getPanel('order'), // Where `app` is the ID of the panel you want to test.
);
Filament::setCurrentPanel(
   Filament::getPanel('order'), // Where `app` is the ID of the panel you want to test.
);


Was during tests
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Resource::getUrl(panel: 'server') still uses the wrong panel in spaUrlExceptions()
FilamentFFilament / ❓┊help
13mo ago
new panel route
FilamentFFilament / ❓┊help
3y ago
Multiple Panel Resource
FilamentFFilament / ❓┊help
3y ago
Global search for resource name
FilamentFFilament / ❓┊help
3y ago