Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

duongtd's avatar

Access multiples authenticate guards on subdomain?

Hi there,

I'm currently working with multiple authenticate guard under difference user tables. One is Teacher guard configured to use teaches table and another one is Student within students table. I have setup router for their authenticate within it subdomain like this:

Teacher can login and working under teachers.domain.com
Student can login and working under students.domain.com
and the frontend page goes to www.domain.com

So the question is: is it possible to check for Student or Teacher login within the frontend domain? Do you have any ideal on how to do that?

0 likes
1 reply

Please or to participate in this conversation.