#Filament::auth()->login($user), multiple guards

4 messages · Page 1 of 1 (latest)

pine hazel
#

How does Filament::auth()->login($user) deal with issue where there are multiple panels and guards?

Looking from a testing perspective, can I specify the guard to use?

quick lintelBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

tawny zephyr
#

It would log them in directly bypassing the guards looking a the code.

pine hazel
#

Cheers, it seems to work for whichever user model I am trying for, so I'm not going to argue with it. I hate tests enough already !