1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-05-07 06:14:03 +00:00
tenancy/src/Database/Concerns
Samuel Štancl c4960b76cb
[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).
2026-03-18 19:17:28 +01:00
..
BelongsToPrimaryModel.php [4.x] Laravel 13 support (#1443) 2026-03-18 19:17:28 +01:00
BelongsToTenant.php [4.x] Laravel 13 support (#1443) 2026-03-18 19:17:28 +01:00
CentralConnection.php Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00
ConvertsDomainsToLowercase.php get phpstan errors down from 252 to 189 2022-08-30 05:44:23 +02:00
CreatesDatabaseUsers.php [4.x] Cleanup (#1317) 2025-02-20 20:49:09 +01:00
EnsuresDomainIsNotOccupied.php get phpstan errors down from 252 to 189 2022-08-30 05:44:23 +02:00
FillsCurrentTenant.php Postgres RLS + permission controlled database managers (#33) 2024-04-24 22:32:49 +02:00
GeneratesIds.php get phpstan errors down from 252 to 189 2022-08-30 05:44:23 +02:00
HasDatabase.php Refactor DatabaseConfig, minor DB manager improvements, resolve todos 2025-10-13 16:01:34 +02:00
HasDomains.php [4.x] Add more relation type annotations (#1424) 2025-12-28 23:20:05 +01:00
HasInternalKeys.php Simplify TenantWithDatabase interface, move tenantConfig() logic 2024-03-01 10:48:33 +01:00
HasPending.php Pending tenants: Add getPendingAttributes() 2025-10-28 12:50:13 +01:00
HasScopedValidationRules.php Fix #998, properly replace ALL tenant_id literals 2022-11-10 16:44:52 +01:00
InitializationHelpers.php Fix code style (php-cs-fixer) 2022-09-29 00:47:38 +00:00
InvalidatesResolverCache.php [4.x] Invalidate resolver cache on delete (#1329) 2025-03-13 17:03:49 +01:00
InvalidatesTenantsResolverCache.php [4.x] Invalidate resolver cache on delete (#1329) 2025-03-13 17:03:49 +01:00
MaintenanceMode.php Fix code style (php-cs-fixer) 2022-10-17 17:48:49 +00:00
ManagesPostgresUsers.php phpstan fixes 2025-01-05 15:50:30 +01:00
PendingScope.php pending tenants: minor cleanup 2025-10-29 22:54:53 +01:00
RLSModel.php Postgres RLS + permission controlled database managers (#33) 2024-04-24 22:32:49 +02:00
TenantConnection.php Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00
TenantRun.php phpstan fixes 2025-01-05 15:50:30 +01:00