Installation error 1PanelProvider
Hi guys!
I'm trying to install filament v3, but get strange bug.
I follow manual:
all installed without errors in console but as you can see on screenshot provider class is named 1PanelProvider
And if i remove the "1" from the file name and class name finally i get error "Cannot declare class App\Providers\Filament\PanelProvider because the name is already in use"
Screenshots are maked on my Ubuntu vps, on my local windows machine same situation
here is part of my composer.json after installation:
5 Replies
You can't start a class name with a number
Looks like you're trying to make your panel called "1"
And yeah, if you remove the 1 of course you can't call it PanelProvider, it's inheriting a class already called PanelProvider
Lol! thanks, try to gave another name
Instead of 1, call it something like App, so the class becomes AppPanelProvider
Then change it in the providers config list
Rename the file etc.
I would also do ->id('app'), then you can have the path as whatever you want
Thank you so much! I just thought that question is about user_id like in filament2. Now it worked out
Ahhh I see where you got confused now, glad you got it sorted!