mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 20:34:03 +00:00
add todo
This commit is contained in:
parent
fd6070ff1b
commit
a85708429e
1 changed files with 2 additions and 0 deletions
|
|
@ -51,6 +51,8 @@ class PathTenantResolver extends Contracts\CachedTenantResolver
|
|||
// todo@samuel: fix the coupling here. when this is called from the cachedresolver, $args are the tenant key. when it's called from within this class, $args are a Route instance
|
||||
// the logic shouldn't have to be coupled to where it's being called from
|
||||
|
||||
// todo@samuel also make the tenant column configurable
|
||||
|
||||
// $args[0] can be either a Route instance with the tenant key as a parameter
|
||||
// Or the tenant key
|
||||
$args = [$args[0] instanceof Route ? $args[0]->parameter(static::tenantParameterName()) : $args[0]];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue