Can you show your current code that doesn't work?
Laravel subdomain routing problem
Hi all,
I'm trying to replicate an old site in laravel and this is my first real project with it.
Everything is fine but the problem is that this site uses subdomains only to choose the database to work on. I should therefore set the routing that only works on the subdomains, only have a root for the base domain and create a function to set the database connection.
I tried using the routing domain and group function but I still can't get it to work. Does anyone have any advice or a general setup of how to do it?
For example, given the site "bab.test", this should refer to a view-only page, while "* .bab.test" should send to the real application with all the controllers, where * can be any word.
I have already looked for solutions to this problem in other threads but I have not been able to apply the various solutions to my problem. I thank anyone who can help me :)
Please or to participate in this conversation.