Laravel authenticated dynamic subdomain routing
问题 I'm trying to get authenticated subdomain routing working for some specific variable subdomains: app.example.com staging.app.example.com testing.app.example.com These should be guarded by the auth middleware. They all essentially reference app.example.com but for different environments. Everything that hits these domains should go to the guest routes: example.com staging.example.com testing.example.com This is what I've tried so far... Created this middleware to prevent the subdomain