I am looking for implementing multi tenant routing mechanism where the URL
should look like:
myapp.com/tenant-1/dashboard,
myapp.com/tenant-2/dashboard.
I am looking for implementing multi tenant routing mechanism where the URL
should look like:
myapp.com/tenant-1/dashboard,
myapp.com/tenant-2/dashboard.
Then your routing declaration should look like this :
You'll have to declare your routing like this, where /:tenant_id will be dynamically generated.
You'll read the :tenant_id with the below code: