amirf's avatar
Level 1

Multi-tenancy for laravel

I have a Laravel project in which I've implemented a multi-tenancy package. While everything works well on my local server, I'm facing an issue after deploying the project to the live server. When I create a new tenancy and access its subdomain, I encounter a "not found" error for that domain. If anyone has a solution, please let me know.

0 likes
7 replies
jaseofspades88's avatar

Quite a vague issue, really. If you've got a stack trace or an error we can see?

jagdish-j-ptl's avatar

Where did you hosted your application? You need to make sure you have created CNAME record for wild card subdomains. i.e. *.domain.com

jagdish-j-ptl's avatar

@amirf

I've used same package with subdomain based multitenancy and it is working fine by you need to create subdomain for each tenant, I used cpanel as development server and through its API I could able to create it. Have you tried using wildcard domains?

Gabrielst's avatar

Hi @amirf,

Did you finally get the solution, i'm currently facing the same issue I don't know how to solve it. Please I really need help.

amirf's avatar
Level 1

Hey, yes, resolved by VPS Hosting.

Please or to participate in this conversation.