در حال بارگذاری ...

Multi-Tenant App Overview0:00

In this series, you're going to learn how to build a single-database, multi-tenant application using Laravel. Now, a single-database, multi-tenant application is exactly what it sounds like. You have multiple tenants and all of that data lives in one database. Now, I'm going to teach you how to build this so that you ensure there's no data leakage and one tenant will never see the data from another. This approach also reduces the complexity so you don't have to worry about switching from one database to another as you go between tenants. And it also makes it really easy to roll up all of your tenants to one super admin dashboard where you can see all the information coming straight from one database.

Public vs Private Uploads1:36

So I'm going to talk through two different types of uploads. The first is going to be a public upload like a photo where anyone who has the URL should be able to see that photo. And again, that's going out to Amazon S3. The second one is where you upload something that may be sensitive, like an application that has someone's personal information on it. In this case, it still needs to live in S3, but we need to lock it down, make sure no one can see it unless they're logged into our app and they have the specific permissions that we dictate so that they can see it securely. We are using the tall stack here, Tailwind, Alpine, Livewire, and Laravel, and we're going

Super Admin Dashboard Features2:05

that we dictate so that they can see it securely. We are using the tall stack here, Tailwind, Alpine, Livewire, and Laravel, and we're going to go through the really powerful, really simple Livewire uploads as we do this. Finally, as we get the basic functionality done, then we're going to move on to the super admin dashboard, which is again, a really powerful tool that you can use in your multi-tenant application to be able to visualize the data across all of your tenants. So in this case, I have four subscribers, the total number of users. We're also going to talk about how to quickly and easily add some nice charts so that you can add some data visualization to your dashboards. And then finally, I'm going to show you how to add impersonation functionality so that

دوست دارید گاهی خبرهای Laracasts را ایمیل کنیم؟