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

minaFaragAmin's avatar

wildcard subdomains point to new laravel apps with forge setup

i want my main laravel application EX : Mina.com , to be able to generate new subdomains that could point to different laravel applications within the same server.

1- i register through mina.com. 2- validate 3- create a record for with myname.mina.com 4- copy new laravel application from a repo with the same user name 5- redirect all myname.mina.com to the new created applications.

what t've did so far

1- provision a DigitalOcean server using laravel forge 2- created the main laravel application 3- install it on server and root domain and enabled wildcards 4- created a domain route group

what i'm stuck in 5- redirecting the user to his own brand new laravel app and connecting the subdomain to this app.

0 likes
2 replies
minaFaragAmin's avatar

thanks for sharing this article with me i will study it , investigate and apply thanks again will push updates after i will do it.

1 like

Please or to participate in this conversation.