mirror of
https://github.com/archtechx/tenancy.git
synced 2026-06-21 16:54:03 +00:00
Remove detailed tenancy references from boost resources for better clarity and maintainability
This commit is contained in:
parent
fde2bf0cf4
commit
882eaef8b4
20 changed files with 0 additions and 0 deletions
|
|
@ -0,0 +1,41 @@
|
|||
# Filesystem Cache Queue Reference
|
||||
|
||||
Use this when tenant context affects storage, cache, sessions, Redis, or queues.
|
||||
|
||||
## Source Files
|
||||
|
||||
- `src/Bootstrappers/FilesystemTenancyBootstrapper.php`
|
||||
- `src/Bootstrappers/CacheTenancyBootstrapper.php`
|
||||
- `src/Bootstrappers/CacheTagsBootstrapper.php`
|
||||
- `src/Bootstrappers/DatabaseCacheBootstrapper.php`
|
||||
- `src/Bootstrappers/RedisTenancyBootstrapper.php`
|
||||
- `src/Bootstrappers/QueueTenancyBootstrapper.php`
|
||||
- `src/Bootstrappers/PersistentQueueTenancyBootstrapper.php`
|
||||
- `src/Bootstrappers/DatabaseSessionBootstrapper.php`
|
||||
- `src/Middleware/ScopeSessions.php`
|
||||
|
||||
## Filesystem
|
||||
|
||||
- `filesystem.disks` controls scoped disks.
|
||||
- `filesystem.root_override` rewrites local disk roots.
|
||||
- `filesystem.url_override` enables tenant-aware local public URLs.
|
||||
- `filesystem.suffix_storage_path` controls `storage_path()` suffixing.
|
||||
- `filesystem.asset_helper_override` makes `asset()` tenant-aware.
|
||||
|
||||
## Cache And Redis
|
||||
|
||||
- Cache tenancy prefixes configured stores through `cache.prefix`.
|
||||
- Global central cache is available through `GlobalCache`/`globalCache()`.
|
||||
- Redis tenancy is for direct Redis usage and requires phpredis.
|
||||
|
||||
## Queue
|
||||
|
||||
- Queue bootstrapper carries tenant context into queued jobs.
|
||||
- Persistent queue bootstrapper is for workers intentionally staying tenant-aware.
|
||||
|
||||
## Rules
|
||||
|
||||
- Run `php artisan tenants:link` when tenant public local storage URLs are enabled.
|
||||
- Be careful with `asset_helper_override`; third-party package assets may become tenant-aware.
|
||||
- Scope sessions through config and `ScopeSessions` middleware where required.
|
||||
- Test queued jobs in central and tenant contexts.
|
||||
Loading…
Add table
Add a link
Reference in a new issue