1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 16:14:02 +00:00

add Tenancy::$findWith

This commit is contained in:
Samuel Štancl 2024-04-05 19:48:50 +02:00
parent 5ef7604e17
commit ac5948dfd1
5 changed files with 24 additions and 13 deletions

View file

@ -26,7 +26,7 @@ class PathTenantResolver extends Contracts\CachedTenantResolver
}
if ($key) {
if ($tenant = tenancy()->find($key, $column)) {
if ($tenant = tenancy()->find($key, $column, withRelations: true)) {
/** @var Tenant $tenant */
return $tenant;
}