Answer the question
In order to leave comments, you need to log in
How to make Laravel Multiple auth with subdomains?
Hello!
Is it possible to make completely independent sessions with different user authorization tables in Laravel for SubDomains?
That is, on the main domain - a classic, and on all subdomains, registration, authorization, etc. go to another table and sessions between subdomains do not intersect. Separation of users in a secondary table by different domains, for example, through a column - 'domain'
Answer the question
In order to leave comments, you need to log in
Make the user model have a global scope for the current domain (well, or for the list)
https://laravel.com/docs/7.x/eloquent#query-scopes
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question