mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-13 03:34:04 +00:00
Change URI prefix order during route cloning (#49)
* Change URI prefix order [ci skip] * Move route cloning to `$this->app->booted()` [ci skip] * Delete note about LW v2 * Improve comments/docblock [skip ci] * Fix comment in test, improve assertion [skip ci]
This commit is contained in:
parent
7317d2638a
commit
b789f5c561
3 changed files with 53 additions and 47 deletions
|
|
@ -174,7 +174,7 @@ class CloneRoutesAsTenant
|
|||
return $action
|
||||
->put('as', $newRouteNamePrefix)
|
||||
->put('middleware', $newRouteMiddleware)
|
||||
->put('prefix', '/{' . PathTenantResolver::tenantParameterName() . '}/' . $route->getPrefix());
|
||||
->put('prefix', $route->getPrefix() . '/{' . PathTenantResolver::tenantParameterName() . '}');
|
||||
})->toArray();
|
||||
|
||||
/** @var Route $newRoute */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue