-
-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question] SaSS multi-tenant #38
Comments
I solved your problems in this way:
Next, you can keep users and cashier tables in each tenant database. |
@masterix21 Would please elaborate on this? I am very interested. |
Sure. The first step is simple. The second step can be solved by setting .env For the third step, you can change these configurations (I will use the helper config('auth.guards.web-landlord', [
'driver' => 'session',
'provider' => 'landlords'
]);
config('auth.providers.landlords', [
'driver' => 'eloquent',
'model' => \App\LandlordUser::class
]);
config('auth.passwords.landlords', [
'provider' => 'landlords',
'connection' => 'landlord',
'table' => 'password_resets',
'expire' => 60,
'throttle' => 60
]) Finally, the fourth step is: config('nova.guard', 'web-landlord');
config('nova.guard', 'landlords'); If I didn't make a typo mistake, it should works. |
This is awesome, thank you very much :D |
Hi there, Using Laravel 8.x I have subdomain routes for tenants e.g. The problem I have is that I have also have a landlord administration area at I have a separate routes file for my network routes
So basically what I want to do is that when the user accesses Any help is much appreciated. Thanks. |
Nevermind. Total rookie mistake... Facepalm... |
Hi, @getupkid Thank you |
Hi guys,
I have another question. Let's say I have a multi-tenant SaSS app. I am also using Laravel Nova to have the admin panel. I have a few questions about best practices and general questions:
1- Where do I store the users table? In each tenant? If so how can I access the tenants?
2- As I am using Laravel Nova, I created a resource called Tenant so I can manage the tenants but from where do I access it?
3- Where would you guys suggest that I store the cashier tables?
I am thinking that I need to put the users and cashier tables in the landlord connection, am I missing something?
The text was updated successfully, but these errors were encountered: