Courses

Laravel 12 Multi-Tenancy: All You Need To Know

Quick Run Through More Extra Features

You're reading a FREE PREVIEW of a PREMIUM course.
Summary of this lesson:
- Separating tenant cache and storage systems
- Implementing tenant-aware testing
- Integrating multi-tenancy with third-party packages

Finally, in the last lesson of this section, I will quickly run through other features of this package.


So, what can you separate databases for different tenants, what else can you separate? For example, you can separate the cache. If you use a cache driver with tags like Redis, you can separate the tags and clear the cache of certain tenants.


Then, a complex file system tenancy bootstrapper enables tenants to separate storage or assets. And, as it is said in the official documentation, this bootstrapper is the most complex one by far because it has a lot of logic on how to separate by subfolders.

What it does is separate the files. For example, if I store that in the path of tasks, it separates create storage/app. Instead of storage/app, it has storage/{tenant_id}/app, and each tenant has its subfolder with storage inside.

Then, you could separate the tenant and...

The full lesson is only for Premium Members.
Want to access all 22 lessons of this course? (88 min read)

You also get:

  • 76 courses
  • Premium tutorials
  • Access to repositories
  • Private Discord