1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-04 15:44:04 +00:00
tenancy/src
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
..
Actions Cloning: improve type annotations, add cloneRoutes() for convenience 2025-11-10 02:16:57 +01:00
Bootstrappers [4.x] Filesystem bootstrapper: scoped disk support (#1402) 2025-12-16 23:17:11 +01:00
Commands [4.x] Clean up expired impersonation tokens instead of just aborting, add command for cleaning up expired tokens (#1387) 2025-10-28 14:14:52 +01:00
Concerns [4.x] Fix dropRLSPolicies() (#1413) 2025-11-08 00:52:08 +01:00
Contracts Features refactor 2025-08-31 23:18:44 +02:00
Controllers [4.x] General code cleanup (#1278) 2024-12-31 00:35:46 +01:00
Database [4.x] Add more relation type annotations (#1424) 2025-12-28 23:20:05 +01:00
Enums Make RouteMode enum backed (#1362) 2025-06-02 20:34:49 +02:00
Events Pending tenants refactor (BC break) 2025-08-25 00:01:02 +02:00
Exceptions remove ignition dependencies 2025-06-18 23:29:24 +02:00
Facades [4.x] Support database cache store tenancy (#1290) (resolve #852) 2025-08-08 00:54:01 +02:00
Features [4.x] Clean up expired impersonation tokens instead of just aborting, add command for cleaning up expired tokens (#1387) 2025-10-28 14:14:52 +01:00
Jobs Fix assert: run createDatabase() outside assert() 2025-10-16 01:10:07 +02:00
Listeners Create tenant storage directories in FilesystemTenancyBootstrapper (#1410) 2025-11-04 21:16:39 +01:00
Middleware Merge dev branch (minor breaking changes) 2025-10-14 17:32:44 +02:00
Overrides phpstan: Remove ignore that is no longer necessary 2025-10-13 16:12:01 +02:00
Resolvers [4.x] Support database cache store tenancy (#1290) (resolve #852) 2025-08-08 00:54:01 +02:00
ResourceSyncing [4.x] Add more relation type annotations (#1424) 2025-12-28 23:20:05 +01:00
RLS [4.x] TableRLSManager refactor, comment constraints (#1354) 2025-07-03 21:12:04 +02:00
UniqueIdentifierGenerators Add UUIDv7Generator 2025-11-04 15:45:48 +01:00
helpers.php resolve minor todos 2025-08-18 15:05:17 +02:00
Tenancy.php Resolve misc todos, fix phpstan error 2025-10-20 01:57:02 +02:00
TenancyServiceProvider.php globalUrl: useAssetOrigin() instead of setAssetRoot() 2025-11-14 10:59:31 +01:00