Skip to content

Conversation

@kevindierkx
Copy link
Contributor

Replaced Database Connection instances in favor of repositories, comparable to: #90

Added support to swap models, possible solution for: #58

// On repositories
AuthCodeRepository::setModel(SomeOtherModel::class);
ClientRepository::setModel(SomeOtherModel::class);
RefreshTokenRepository::setModel(SomeOtherModel::class);
TokenRepository::setModel(SomeOtherModel::class);

// On models
Client::setTokenModel(SomeOtherModel::class);

@taylorotwell
Copy link
Member

Tests are failing. Please re-submit when tests are passing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants