Skip to content

Tenancy for Laravel considers www. as a tenant #1087

@Guzbyte-tech

Description

@Guzbyte-tech

Bug description

The package considers any prefix before the main domain as a tenant and hence throws the error Tenant could not be identified on domain on TenantCouldNotBeIdentifiedOnDomainException. This error doesn't appear on localhost till i deployed to production server.

Steps to reproduce

After creating tenants, I tried accessing tenants from the browser i observed it has a prefix of www.
This then throughs an error www.tenant not identified on domain

Expected behavior

It is expected that the package should ignore the www. prefix before the tenant or accommodate without through the tenant not found error.

Laravel version

8.2.0

stancl/tenancy version

3.1.0

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions