GithubHelp home page GithubHelp logo

Comments (3)

masterix21 avatar masterix21 commented on September 24, 2024 1

Create a relationship between tenant and user inside your landlord database.

Next, if you create a login in your landlord website, it could be valid for all your subdomains (if your cookie is valid).

What are the problems?

from laravel-multitenancy.

dambridge avatar dambridge commented on September 24, 2024

In my current implementation, when registering users, I add a record in the Landlord database as well, as I wanted a quick way to see the entire user base of the app somewhere. I could change my setup so that Passport installs in the Landlord db instead of Tenant, associate a token request with the user's tenant, and go from there. The only issue I see there now is that my original desire to allow users to join multiple tenants would no longer be a thing.

Of course, this is all made easier with a little bit of friction added to the UX for authentication, by simply adding a field in which the user must enter their particular subdomain. Hmm.

from laravel-multitenancy.

freekmurze avatar freekmurze commented on September 24, 2024

Closing this as this is not an issue with the internals of the package.

Feel free to keep the conversion going.

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.