Skip to content

[4.x] Laravel 13 support#1443

Merged
stancl merged 1 commit intomasterfrom
push-volsqvuqoxwl
Mar 18, 2026
Merged

[4.x] Laravel 13 support#1443
stancl merged 1 commit intomasterfrom
push-volsqvuqoxwl

Conversation

@stancl
Copy link
Copy Markdown
Member

@stancl stancl commented Mar 18, 2026

  • 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 [13.x] Change to hyphenate prefixes laravel/framework#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).

@stancl stancl force-pushed the push-volsqvuqoxwl branch from 06d0747 to 6bc653f Compare March 18, 2026 16:59
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 18, 2026

Codecov Report

❌ Patch coverage is 75.00000% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 86.05%. Comparing base (8f3ea62) to head (fd2696b).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
src/Database/Concerns/BelongsToPrimaryModel.php 75.00% 1 Missing ⚠️
src/Database/Concerns/BelongsToTenant.php 75.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #1443      +/-   ##
============================================
- Coverage     86.08%   86.05%   -0.03%     
- Complexity     1148     1152       +4     
============================================
  Files           184      184              
  Lines          3363     3371       +8     
============================================
+ Hits           2895     2901       +6     
- Misses          468      470       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@stancl stancl force-pushed the push-volsqvuqoxwl branch from 6bc653f to 4d95b02 Compare March 18, 2026 17:46
@stancl stancl mentioned this pull request Mar 18, 2026
- 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 laravel/framework#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).
@stancl stancl force-pushed the push-volsqvuqoxwl branch from 4d95b02 to fd2696b Compare March 18, 2026 18:00
@stancl stancl merged commit c4960b7 into master Mar 18, 2026
11 of 13 checks passed
@stancl stancl deleted the push-volsqvuqoxwl branch March 18, 2026 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant