-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
domain() works with only one domain. #128
Comments
Hey there, I am unable to reproduce your issue. However, it seems that the first Can you try something like this and let me know how it goes?
|
in FolioServiceProvider public function boot(): void
{
Folio::path(resource_path("views/pages/central"));
Folio::domain('domain-one.test')->path(resource_path("views/pages/tenants/one"));
Folio::domain('domain-two.test')->path(resource_path("views/pages/tenants/two"));
} Output for Folio Routes php artisan folio:list
---------------------------------xxx------------------xxx---------------------- public function boot(): void
{
Folio::path(resource_path("views/pages"));
Folio::domain('domain-one.test')->path(resource_path("views/pages/tenants/one"));
Folio::domain('domain-two.test')->path(resource_path("views/pages/tenants/two"));
} Output is
|
It seems like when there are same folder structure for multiple domains, that same folder structure conflict with creating urls.
then routes for index and same page is not showing for domain two and following domains. while, different page names or folder structure is registered for each domain. |
Thanks for sharing that info. Do you mind of creating and sharing a GitHub link to a open-source repository with fresh Laravel application that I can clone to reproduce your issue? |
Because it may take a while, please create an new issue with that link, and a reference to this issue. Going to close this issue meanwhile. |
Folio Version
1.1.5
Laravel Version
10.37.3
PHP Version
8.1.4
Description
First and 2nd line is working. but 2nd or any next domain is not working.
in above code only first domain is working. any next domains are not working
Steps To Reproduce
in FolioServiceProvider
The text was updated successfully, but these errors were encountered: