GithubHelp home page GithubHelp logo

Comments (3)

ammadeuss avatar ammadeuss commented on June 27, 2024 1

“ The package ships with a DomainTenantFinder that will make the tenant active who’s domain attribute value matches the host of the current request.”

from https://docs.spatie.be/laravel-multitenancy/v1/installation/determining-current-tenant/

from laravel-multitenancy.

asivaneswaran avatar asivaneswaran commented on June 27, 2024

Sorry, it might not have been clear.

I know it can detect: site1.website.com, site2.website.com, etc. But what if there is some sites that site1.com and site2.com?

from laravel-multitenancy.

vincenzoraco avatar vincenzoraco commented on June 27, 2024

The DomainTenantFinder class will get the full domain by default (see https://docs.spatie.be/laravel-multitenancy/v1/basic-usage/automatically-determining-the-current-tenant/) using $request->getHost() which returns the full domain including any subdomains, so if your user is using a custom domain, set the $user->domain to custom.com instead of user.yourdomain.com.

from laravel-multitenancy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.