F
Filament14mo ago
Daniel

Multiple panel logins

Is it possible to have multiple login pages and switch them base on some give conditions within the panel login()method? I want to have a second login form, which provides a passwordless login mechanism but only when a request param is matching. I already tried something like that:
->login(request()->has('passwordless') ? PasswordlessLogin::class : Login::class)
->login(request()->has('passwordless') ? PasswordlessLogin::class : Login::class)
But this seems not to work always. Any ideas?
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?