mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 03:34:03 +00:00
improve docblock
This commit is contained in:
parent
6f760ef4cd
commit
0b20f3122f
1 changed files with 2 additions and 3 deletions
|
|
@ -24,8 +24,7 @@ use Stancl\Tenancy\Resolvers\PathTenantResolver;
|
||||||
* The default for $cloneRoutesWithMiddleware is ['clone'].
|
* The default for $cloneRoutesWithMiddleware is ['clone'].
|
||||||
* If $routesToClone is empty, all routes with any middleware specified in $cloneRoutesWithMiddleware will be cloned.
|
* If $routesToClone is empty, all routes with any middleware specified in $cloneRoutesWithMiddleware will be cloned.
|
||||||
* The middleware can be in a group, nested as deep as you want
|
* The middleware can be in a group, nested as deep as you want
|
||||||
* (e.g. if a route has a 'bar' middleware, the 'bar' is actually a middleware group with the
|
* (e.g. if a route has a 'foo' middleware which is a group containing the 'clone' middleware, the route will be cloned).
|
||||||
* 'foo' middleware group, and 'foo' has the 'clone' middleware, the route will be cloned).
|
|
||||||
*
|
*
|
||||||
* You may customize $cloneRoutesWithMiddleware using cloneRoutesWithMiddleware() to make any middleware of your choice trigger cloning.
|
* You may customize $cloneRoutesWithMiddleware using cloneRoutesWithMiddleware() to make any middleware of your choice trigger cloning.
|
||||||
* By providing a callback to shouldClone(), you can change how it's determined if a route should be cloned if you don't want to use middleware flags.
|
* By providing a callback to shouldClone(), you can change how it's determined if a route should be cloned if you don't want to use middleware flags.
|
||||||
|
|
@ -61,7 +60,7 @@ use Stancl\Tenancy\Resolvers\PathTenantResolver;
|
||||||
* $cloneAction->cloneRoute('baz')->handle();
|
* $cloneAction->cloneRoute('baz')->handle();
|
||||||
* ```
|
* ```
|
||||||
*
|
*
|
||||||
* Calling handle() will also clear the $routesToClone array, so that subsequent handle() calls aren't broken.
|
* Calling handle() will also clear the $routesToClone array.
|
||||||
* This means that $action->cloneRoute('foo')->handle() will clone the 'foo' route, but subsequent calls to handle() will behave
|
* This means that $action->cloneRoute('foo')->handle() will clone the 'foo' route, but subsequent calls to handle() will behave
|
||||||
* as if cloneRoute() wasn't called at all ($routesToClone will be empty).
|
* as if cloneRoute() wasn't called at all ($routesToClone will be empty).
|
||||||
* Note that calling handle() does not reset the other properties.
|
* Note that calling handle() does not reset the other properties.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue