© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
6 replies
stanwarri

Auth guard [] is not defined.

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();
    }


Removing it solved the issue
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Different Auth Guard
FilamentFFilament / ❓┊help
3y ago
Filament auth guard logout
FilamentFFilament / ❓┊help
5mo ago
Testing custom auth guard
FilamentFFilament / ❓┊help
2y ago
Route [filament.auth.login] not defined
FilamentFFilament / ❓┊help
3y ago