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)


But this seems not to work always.

Any ideas?
Was this page helpful?