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...