Closed ruelluna closed 4 years ago
I'm building this for v3 right now. Will be public next week probably. But, you can get some inspiration here: https://github.com/stancl/tenancy/issues/194
Thanks!
So by doing this, https://github.com/stancl/tenancy/issues/194#issuecomment-552500495 you mean to say we could setup the main application to not have users table? If yes, I can go with it.
Also, I couldn't see how can I pull up all tenant data (like a Super Administrator dashboard), where I can see the activity for each tenant. Do you do this my tapping to each tenant's database connection and querying all of that ?
So excited to see your workflow. Will there be any available video tutorials? Thanks much!
you mean to say we could setup the main application to not have users table
Yes, the register tenant page only creates a tenant, and the login tenant page redirects to the login screen on that tenant's domain (we find the tenant by e.g. email).
pull up all tenant data
You either have to loop through all tenants, or you have to use single DB tenancy. That's coming in v3 too.
Will there be any available video tutorials
Possibly at a later point. Now I'm focusing getting the boilerplate & v3 done.
I freshly installed Laravel and giving this a shot.
My current registration workflow that is working are these steps
App/Models/User
(central) withusername
,email
,firstname
andlastname
as fields.App/Models/Tenant/User
.I have few questions on my workflow.
users
table with anadmin
role (roles are managed in another package) and automatically login the user.This is my first time setting up a SaaS app. Basically, I'm building a boilerplate to use for future projects.