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:
parent
5ef7604e17
commit
ac5948dfd1
5 changed files with 24 additions and 13 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue