© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
4 replies
dasK_

Filament Page In the Wrong Panel?

I have two panels, Admin and userPanel, all of my pages seem to be working just fine and displaying the panel for the folder/namespace they're in (routes look good too)

I have one page in my userPanel that displays the admin panel? I've checked the folder path of the Component and Blade

Blade:
views/filament/user-panel/pages/top-up.blade.php

Component:
app/filament/UserPanel/Pages/TopUp.php

namespace App\Filament\UserPanel\Pages;
namespace App\Filament\UserPanel\Pages;


in my provider files

admin
            ->discoverResources(in: app_path('Filament/Resources'), for: 'App\\Filament\\Resources')
            ->discoverPages(in: app_path('Filament/Pages'), for: 'App\\Filament\\Pages')
            ->discoverResources(in: app_path('Filament/Resources'), for: 'App\\Filament\\Resources')
            ->discoverPages(in: app_path('Filament/Pages'), for: 'App\\Filament\\Pages')


userPanel
            ->discoverResources(in: app_path('Filament/UserPanel/Resources'), for: 'App\\Filament\\UserPanel\\Resources')
            ->discoverPages(in: app_path('Filament/UserPanel/Pages'), for: 'App\\Filament\\UserPanel\\Pages')
            ->discoverResources(in: app_path('Filament/UserPanel/Resources'), for: 'App\\Filament\\UserPanel\\Resources')
            ->discoverPages(in: app_path('Filament/UserPanel/Pages'), for: 'App\\Filament\\UserPanel\\Pages')


Can't seem to figure out what's happening here especially when all of the other userPanel pages are fine

Generated Route
 GET|HEAD        userPanel/top-up ......................................................................................................................................................................... filament.userPanel.pages.top-up › App\Filament\UserPanel\Pages\TopUp 
 GET|HEAD        userPanel/top-up ......................................................................................................................................................................... filament.userPanel.pages.top-up › App\Filament\UserPanel\Pages\TopUp 
Solution
Figured it out, I was trying to use Laravel routes in web.php, Filament only works properly with

    protected static ?string $slug = 'top-up/{orderNumber}';
    protected static bool $shouldRegisterNavigation = false;
    protected static ?string $slug = 'top-up/{orderNumber}';
    protected static bool $shouldRegisterNavigation = false;
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
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

My custom filament page is showing the wrong sidebar from different panel
FilamentFFilament / ❓┊help
2y ago
hello i have filament blade <x-filament-panels::page> </x-filament-panels::page>
FilamentFFilament / ❓┊help
3y ago
installing the filament laravel panel?
FilamentFFilament / ❓┊help
2y ago
Using filament page and laravel pages together in admin panel
FilamentFFilament / ❓┊help
2y ago