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
in my provider files
admin
userPanel
Can't seem to figure out what's happening here especially when all of the other userPanel pages are fine
Generated Route
Solution:Jump to 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;...
2 Replies
I've put a Log::info('UserPanel route: ' . config('your.config.route')); in the mount, and I get the expected output [2024-02-03 05:21:01] local.INFO: UserPanel route:
I also do have another page called TopUp in the admin panel, but I completely renamed the userPanel one, still the same outcome, and to the best of my knowledge.. it should work as I'm doing the same thing for my order page
Solution
Figured it out, I was trying to use Laravel routes in web.php, Filament only works properly with