mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 08:14: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
|
|
@ -37,6 +37,13 @@ class PathTenantResolver extends Contracts\CachedTenantResolver
|
||||||
throw new TenantCouldNotBeIdentifiedByPathException($id);
|
throw new TenantCouldNotBeIdentifiedByPathException($id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function resolved(Tenant $tenant, ...$args): void
|
||||||
|
{
|
||||||
|
$route = $args[0];
|
||||||
|
|
||||||
|
$route->forgetParameter(static::$tenantParameterName);
|
||||||
|
}
|
||||||
|
|
||||||
public function getArgsForTenant(Tenant $tenant): array
|
public function getArgsForTenant(Tenant $tenant): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue