Installation error 1PanelProvider

Hi guys! I'm trying to install filament v3, but get strange bug. I follow manual:
composer require filament/filament:"^3.0-stable" -W
php artisan filament:install --panels
composer require filament/filament:"^3.0-stable" -W
php artisan filament:install --panels
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:
{
"name": "laravel/laravel",
"type": "project",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"require": {
"php": "^8.0.2",
"filament/filament": "^3.0-stable",
"google/apiclient": "^2.13",
"guzzlehttp/guzzle": "^7.2",
"laravel/framework": "^10.0",
"laravel/horizon": "^5.9",
"laravel/sanctum": "^3.2",
"laravel/socialite": "^5.5",
"laravel/tinker": "^2.7",
"laravel/ui": "^4",
"livewire/livewire": "^3.1",
"mcamara/laravel-localization": "^1.7",
"predis/predis": "^2.0",
"pusher/pusher-php-server": "^7.0",
"socialiteproviders/google": "^4.1"
},
"require-dev": {
"fakerphp/faker": "^1.9.1",
"laravel/pint": "^1.2",
"laravel/sail": "^1.0.1",
"mockery/mockery": "^1.4.4",
"nunomaduro/collision": "^6.1",
"phpunit/phpunit": "^9.5.10",
"spatie/laravel-ignition": "^2.0"
},

{
"name": "laravel/laravel",
"type": "project",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"require": {
"php": "^8.0.2",
"filament/filament": "^3.0-stable",
"google/apiclient": "^2.13",
"guzzlehttp/guzzle": "^7.2",
"laravel/framework": "^10.0",
"laravel/horizon": "^5.9",
"laravel/sanctum": "^3.2",
"laravel/socialite": "^5.5",
"laravel/tinker": "^2.7",
"laravel/ui": "^4",
"livewire/livewire": "^3.1",
"mcamara/laravel-localization": "^1.7",
"predis/predis": "^2.0",
"pusher/pusher-php-server": "^7.0",
"socialiteproviders/google": "^4.1"
},
"require-dev": {
"fakerphp/faker": "^1.9.1",
"laravel/pint": "^1.2",
"laravel/sail": "^1.0.1",
"mockery/mockery": "^1.4.4",
"nunomaduro/collision": "^6.1",
"phpunit/phpunit": "^9.5.10",
"spatie/laravel-ignition": "^2.0"
},

No description
No description
No description
No description
5 Replies
ConnorHowell
ConnorHowell13mo ago
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
bubaololo
bubaololoOP13mo ago
Lol! thanks, try to gave another name
ConnorHowell
ConnorHowell13mo ago
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
bubaololo
bubaololoOP13mo ago
Thank you so much! I just thought that question is about user_id like in filament2. Now it worked out
No description
ConnorHowell
ConnorHowell13mo ago
Ahhh I see where you got confused now, glad you got it sorted!
Want results from more Discord servers?
Add your server