I have Laravel Backend to Tenants. Where they create stores . Stores can have there own themes it can be deisgined and uploaded to servers.Themes can be in any platform. If it is Laravel then they need to use Laravel themes. If the theme is in another platform like Angular or React they need to use the Laravel API. They have a option to create there one APIS as well. I need a help to route the Request to different platforms based on their themes. Platform will be running in different ports. Server should check the database themes table and route to respective platform by adding ports to the route. How to do this?
@b l praveen I really don’t understand your description. If a user is creating a store, then you should be using either subdomain or domain routing.
No one’s going to want to create a shop and go, “Hey, my store’s URL is randomplatform.com:7095, but make sure you put the ‘:7095’ on the end otherwise you’ll not reach my store.” A user is going to want their own domain for their store, like acmestore.randomplatform.com, or even just acmestore.com.
@martinbean No they have there own admin with subdomain or domains linked. But within the admin they have store frontend to show case there products. store frontend can be written in any platform . They have option to upload themes like shopify. But themes can be in any platform
I want domains to be handled by the server. It should check which platform to route to based on theme used. Each platform will have there own ports and handle routes