mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-04 07:14:02 +00:00
Improve annotation
This commit is contained in:
parent
d2f55e620c
commit
86dc9314e1
1 changed files with 7 additions and 4 deletions
|
|
@ -8,10 +8,13 @@ use Illuminate\Console\Command;
|
||||||
use Stancl\Tenancy\Features\UserImpersonation;
|
use Stancl\Tenancy\Features\UserImpersonation;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This command clears expired impersonation tokens.
|
* This command clears impersonation tokens.
|
||||||
* By default, all tokens older than UserImpersonation::$ttl (60 seconds by default)
|
* By default, only expired tokens (= tokens older than 60s, which is the UserImpersonation::$ttl default) are deleted.
|
||||||
* are deleted. To override this, you can use the --ttl option, for example
|
*
|
||||||
* --ttl=120, all tokens older than 120 seconds will be deleted, ignoring the default.
|
* To override the default behavior, e.g. to clear all tokens newer than 60s,
|
||||||
|
* you can pass the seconds in the --ttl option.
|
||||||
|
*
|
||||||
|
* For example, `tenants:clear-expired-impersonation-tokens --ttl=30` will clear all tokens older than 30 seconds, ignoring the default.
|
||||||
*
|
*
|
||||||
* @see Stancl\Tenancy\Features\UserImpersonation
|
* @see Stancl\Tenancy\Features\UserImpersonation
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue