1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-06-21 20:04:04 +00:00

Remove detailed tenancy references from boost resources for better clarity and maintainability

This commit is contained in:
eramitgupta 2026-06-02 12:38:17 +05:30
parent fde2bf0cf4
commit 882eaef8b4
20 changed files with 0 additions and 0 deletions

View file

@ -0,0 +1,36 @@
# User Impersonation Reference
Use this when implementing tenant user impersonation.
## Source Files
- `src/Features/UserImpersonation.php`
- `src/Database/Models/ImpersonationToken.php`
- `assets/impersonation-migrations/*`
## Setup
```bash
php artisan vendor:publish --provider="Stancl\Tenancy\TenancyServiceProvider" --tag=impersonation-migrations
php artisan migrate
```
Enable feature:
```php
'features' => [
Stancl\Tenancy\Features\UserImpersonation::class,
],
```
## Command
```bash
php artisan tenants:purge-impersonation-tokens
```
## Rules
- Verify tenant match before logging in impersonated users.
- Test guard, redirect URL, remember flag, token TTL, and invalid token behavior.
- Purge expired tokens routinely.