mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-04 19:24:02 +00:00
Uniform deletion of 'tenant' from route params
This commit is contained in:
parent
a3a0320fb4
commit
f93d075fa5
1 changed files with 7 additions and 0 deletions
|
|
@ -36,6 +36,13 @@ class PathTenantResolver extends Contracts\CachedTenantResolver
|
|||
|
||||
throw new TenantCouldNotBeIdentifiedByPathException($id);
|
||||
}
|
||||
|
||||
public function resolved(Tenant $tenant, ...$args): void
|
||||
{
|
||||
$route = $args[0];
|
||||
|
||||
$route->forgetParameter(static::$tenantParameterName);
|
||||
}
|
||||
|
||||
public function getArgsForTenant(Tenant $tenant): array
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue