Because I started to use the cache lookup recently, I've had some issues with the cache invalidation.
I though of sharing the solutions in the documentation:
- Added a solution how to invalidate the cache.
- Added a note/warning to invalidate the cache before if you intend to update the domain name. Otherwise the invalidate cache will not work as the key will have changed because of the new domain name.
* Make `Tenant list` `List` for consistency, add description to List command
* Change ID to tenant key
* Update migrate command description
* Use IDs instead of tenant keys
* Document the ViteBundler feature
* Fix formatting
* Remove Vite integration page, make links to the integration page link to the feature page
* Add example for enabling the feature
* improve writing
Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com>
* Add disclaimer about the Passport version (10.x)
The Passport guide was written before the release of 11.x
* Update passport.blade.md
Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com>
* Update filesystem bootstrapper page WIP
* Filesystem bootstrapper rewrite
* Correct writing
* Update 'is not set' to 'is null'
* Update the suffix base comment to be more understandable
Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com>
* Update storage path helper suffix explanation
* Improve docs page in response to review
* Use the actual suffix instead of the $suffix variable
Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com>
* Include the file structure tenancy image in the repo
* Use the actual suffix instead of the $suffix variable again
Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com>
* Specify what `asset()` returns
Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com>
* Restructure assets section
* Use 'returned' instead of 'retrieved'
Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com>
* Apply suggestions from code review
Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com>
* Say that configuring the asset URL changes the helper's behavior
* Update global assets section according to review
* Update disabling asset() section according to suggestion
* Change 'ID' to 'key'
* Update `Storage` facade section
* Specify the asset() output with ASSET_URL configured
Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com>
* Copy and modify v2 tenant aware commands docs page
* Add navigation link to the tenant-aware commands page
* Use the v2 tenant-aware commands page and slightly modify it
* Update spatie.blade.md
When a tenant is created through the central app TenancyBootstraped is called and wrong permissions are cached if permissions between central and tenant apps are different.
* Add instruction to reset cache key on TenancyEnded
Co-authored-by: lukinovec <lukinovec@gmail.com>
* Improve Orchid integration docs page
Rewrote the docs and removed some bits because they seemed extra (like changing `HOME` or prefixing the tenant routes).
* Fix typo
* Add note about possible error
* Update hyperlink
I spent some time to find out how to manually invalidate the cache, when during testing I found out this is already handled in the base Tenant model. Adding this small paragraph might help others.
* add Laravel Orchid integration
* add the path to the "home" route for central application
* fix link to Universal Routes
* fixed formatting (lots of spaces)
Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com>