Call to a member function auth() on null

Fresh install
at vendor\filament\filament\src\FilamentManager.php:48
44▕ protected ?Model $tenant = null;
45▕
46▕ public function auth(): Guard
47▕ {
➜ 48▕ return $this->getCurrentPanel()->auth();
49▕ }
50▕
51▕ public function bootCurrentPanel(): void
52▕ {

1 vendor\laravel\framework\src\Illuminate\Support\Facades\Facade.php:353
Filament\FilamentManager::auth()

2 vendor\filament\filament\src\Commands\MakeUserCommand.php:56
Illuminate\Support\Facades\Facade::__callStatic("auth", [])
at vendor\filament\filament\src\FilamentManager.php:48
44▕ protected ?Model $tenant = null;
45▕
46▕ public function auth(): Guard
47▕ {
➜ 48▕ return $this->getCurrentPanel()->auth();
49▕ }
50▕
51▕ public function bootCurrentPanel(): void
52▕ {

1 vendor\laravel\framework\src\Illuminate\Support\Facades\Facade.php:353
Filament\FilamentManager::auth()

2 vendor\filament\filament\src\Commands\MakeUserCommand.php:56
Illuminate\Support\Facades\Facade::__callStatic("auth", [])
Solution:
manual register \App\Providers\Filament\AdminPanelProvider::class to config/app.php
Jump to solution
5 Replies
captaincavemonkey
I have run filament install, and there is also no admin page. am I suppose to create an auth panel? I would think that would be set by default
LeandroFerreira
beta4? Did you run php artisan filament:install --panels ?
captaincavemonkey
yes "filament/filament": "^3.0@beta", "name": "filament/filament", "version": "v3.0.0-beta4", "source": { "type": "git", "url": "https://github.com/filamentphp/panels.git", "reference": "7fe184db8b076d6f65ee177a47564633ce469f13" },
Solution
zainalab
zainalab2y ago
manual register \App\Providers\Filament\AdminPanelProvider::class to config/app.php
captaincavemonkey
That did it
Want results from more Discord servers?
Add your server