I upgraded a filament project from v2 to v3. Everything went on well based on the on the upgrade guide. However, when I try to access the admin panel
https.example.com/admin/login
https.example.com/admin/login
, I'm getting
Auth guard [] is not defined.
Auth guard [] is not defined.
error.
I have not been able to wrap my head around it for over 1 hour now.
Solution
Thanks @DrByte and @Dennis Koch for your contribution. I have found the issue. When I was in v2, I have Horizon and Telescope setup locally, and in their service provider, I have this block of code which was referencing the old filament config
protected function authorization() { Auth::setDefaultDriver(config('filament.auth.guard')); parent::authorization(); }
protected function authorization() { Auth::setDefaultDriver(config('filament.auth.guard')); parent::authorization(); }