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

feature: register database connection #24

Merged
merged 1 commit into from
Mar 22, 2021

Conversation

ryangjchandler
Copy link
Owner

This pull request moves away from dynamically resolving the connection using resolveConnection and instead registers a custom connection in database.connections.orbit.

This means that any existing Laravel features that rely on connection names, i.e. Rule::exists, Rule::unique, relationships will continue to work as expected without any issues.

@ryangjchandler ryangjchandler added the enhancement New feature or request label Mar 22, 2021
@ryangjchandler ryangjchandler changed the base branch from main to develop March 22, 2021 18:21
@ryangjchandler ryangjchandler merged commit a1e8442 into develop Mar 22, 2021
@ryangjchandler ryangjchandler deleted the feature/register-db-connection branch March 22, 2021 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant