Replies: 5 comments
-
Hi @weburnit, you can actually define the navigation dynamically, in a Laravel service provider, so you could register the same config for all your tenants. |
Beta Was this translation helpful? Give feedback.
-
//config/twill-navigation.php
<?php
$configs = [
'paul' => [ // tenant-key on sub domain: admin.paul.mydomain.com
'campaigns' => [
'title' => 'Campaigns',
'module' => true,
],
]
];
return $configs; I don't know how to make $config really work dynamically for your idea! |
Beta Was this translation helpful? Give feedback.
-
'support_subdomain_admin_routing' => true,
'admin_app_subdomain' => 'admin', //previous navigation
return [
'campaigns' => [
'title' => 'Campaigns',
'module' => true,
],
]; I did enable subdomain routing for multi-tenant! previous Navigation configuration causes an error! |
Beta Was this translation helpful? Give feedback.
-
Once you enable subdomain routing, the configuration is expecting to be keyed by the subdomains. If you do not want to do this manually from the config file, you can do it dynamically by setting the config using |
Beta Was this translation helpful? Give feedback.
-
If we have a million tenants, does this solution have any impacts regarding config.cache? I think the config should be consistent and isolated by the user's context! |
Beta Was this translation helpful? Give feedback.
-
Summary
Currently, it looks like we have to declare statically twill-navigation.php
If we have thousands of tenants, the current approach is not compatible.
Describe the solution you'd like
We might need to support one configuration for navigation only.
Beta Was this translation helpful? Give feedback.
All reactions