Replies: 4 comments
-
Did you actually comment out |
Beta Was this translation helpful? Give feedback.
0 replies
-
Is this account created? Did you check in the database or via tinker? php artisan tinker User::first() |
Beta Was this translation helpful? Give feedback.
0 replies
-
Turned out it was a trate. I commented them out and login worked.
|
Beta Was this translation helpful? Give feedback.
0 replies
-
In my case the user model was different (with a different guard) class AdminPanelProvider extends PanelProvider
{
public function panel(Panel $panel): Panel
{
return $panel
->default()
->id('admin')
->path('admin')
->login()
->colors([
'primary' => Color::Amber,
])
->discoverResources(in: app_path('Filament/Resources'), for: 'App\\Filament\\Resources')
->discoverPages(in: app_path('Filament/Pages'), for: 'App\\Filament\\Pages')
->pages([
Pages\Dashboard::class,
])
->discoverWidgets(in: app_path('Filament/Widgets'), for: 'App\\Filament\\Widgets')
->widgets([
Widgets\AccountWidget::class,
Widgets\FilamentInfoWidget::class,
])
->middleware([
EncryptCookies::class,
AddQueuedCookiesToResponse::class,
StartSession::class,
AuthenticateSession::class,
ShareErrorsFromSession::class,
VerifyCsrfToken::class,
SubstituteBindings::class,
DisableBladeIconComponents::class,
DispatchServingFilamentEvent::class,
])
->authMiddleware([
Authenticate::class,
])->authGuard('admin'); // <--- This is the only addition I made
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am following the getting started https://filamentphp.com/docs/3.x/panels/installation, and I do the artisan make:filament-user and try to login https://filament.test/admin/login but only receive back that the credentials do not match our records. I commented out the $this->hasVerifiedEmail(); as well
Not sure how to get the PHP script here, Github refuses to attach the PHP script, and pasting it in removed all the line feeds.
Thanks for any thoughts
Beta Was this translation helpful? Give feedback.
All reactions