Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to customize name of tenant_user_impersonation_tokens table #1315

Open
skeets23 opened this issue Feb 18, 2025 · 2 comments
Open
Assignees
Labels
feature New feature or request

Comments

@skeets23
Copy link

It seems that the name for the tenant_user_impersonation_tokens table is hard-coded with no way to change it.

Our database table naming scheme involves singular table names, not plural. It would be nice if we could customize the name of this table to fit our naming conventions.

@skeets23 skeets23 added the feature New feature or request label Feb 18, 2025
@stancl
Copy link
Member

stancl commented Feb 18, 2025

Would need a suggested implementation to keep this issue open.

@skeets23
Copy link
Author

To match other implementations in the package, an additional setting could be added to tenancy.php:

'impersonation_token_model'         => \App\Models\ImpersonationToken::class,

The table name could be customized by extending the existing model using a custom class, and just overriding the table property to change the table name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants