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.
I still think however that multi-site is bit over the top solution. What Taylor does on Forge is simply using tenant_id on every table in your app. This is it. Nothing too complicated in there.