1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-03-23 06:24:04 +00:00
tenancy/src/Database
Punyapal Shah e3701f1cc1
[4.x] Add more relation type annotations (#1424)
This pull request adds improved PHPDoc type annotations to several
Eloquent relationship methods, enhancing static analysis and developer
experience. These changes clarify the expected return types for
relationships, making the codebase easier to understand and work with.

Relationship method type annotations:

* Added a detailed return type annotation to the `tenant` method in the
`BelongsToTenant` trait, specifying the related model and the current
class.
* Added a detailed return type annotation to the `domains` method in the
`HasDomains` trait, specifying the related model and the current class.
* Added a detailed return type annotation to the `tenants` method in the
`ResourceSyncing` class, specifying the related model and the current
class.
2025-12-28 23:20:05 +01:00
..
Concerns [4.x] Add more relation type annotations (#1424) 2025-12-28 23:20:05 +01:00
Contracts Tenant DB manager database() -> connection() 2024-09-12 18:34:45 +02:00
Exceptions Postgres RLS + permission controlled database managers (#33) 2024-04-24 22:32:49 +02:00
Models [4.x] Make the ImpersonationToken model configurable (#1335) 2025-03-18 18:42:08 +01:00
TenantDatabaseManagers Minor fixes 2025-10-22 12:58:45 +02:00
DatabaseConfig.php Refactor DatabaseConfig, minor DB manager improvements, resolve todos 2025-10-13 16:01:34 +02:00
DatabaseManager.php Supported named in-memory SQLite databases (#69) 2024-11-25 04:48:52 +01:00
ParentModelScope.php fix phpstan errors 2024-08-06 04:35:25 +02:00
TenantCollection.php fix phpstan errors 2024-08-06 04:35:25 +02:00
TenantScope.php fix phpstan errors 2024-08-06 04:35:25 +02:00