1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-03-22 02:04:04 +00:00

[4.x] Laravel 13 support (#1443)

- Update ci.yml and composer.json
- Wrap single database tenancy trait scopes in whenBooted()
- Update SessionSeparationTest to use laravel-cache- prefix in L13
  and laravel_cache_ in <=L12. Our own prefix remains tenant_%tenant%_
  (as configured in tenancy.cache.prefix). We could update this to be
  tenant-%tenant%- from now on for consistency with Laravel's prefixes
  (changed in https://github.com/laravel/framework/pull/56172) but I'm
  not sure yet. _ seems to read a bit better but perhaps consistency
  is more important. We may change this later and it can be adjusted
  in userland easily (since it's just a config option).
This commit is contained in:
Samuel Štancl 2026-03-18 19:17:28 +01:00 committed by GitHub
parent 8f3ea6297f
commit c4960b76cb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 52 additions and 18 deletions

View file

@ -17,6 +17,7 @@ jobs:
matrix:
include:
- laravel: "^12.0"
- laravel: "^13.0"
steps:
- name: Checkout