mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-13 05:24:03 +00:00
add Tenancy::$findWith
This commit is contained in:
parent
5ef7604e17
commit
ac5948dfd1
5 changed files with 24 additions and 13 deletions
|
|
@ -20,7 +20,7 @@ class RequestDataTenantResolver extends Contracts\CachedTenantResolver
|
|||
{
|
||||
$payload = (string) $args[0];
|
||||
|
||||
if ($payload && $tenant = tenancy()->find($payload)) {
|
||||
if ($payload && $tenant = tenancy()->find($payload, withRelations: true)) {
|
||||
return $tenant;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue