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

[9.x] Allow to change Models database connection #1255

Merged
merged 1 commit into from
May 11, 2020
Merged

[9.x] Allow to change Models database connection #1255

merged 1 commit into from
May 11, 2020

Conversation

antonkomarev
Copy link
Contributor

@antonkomarev antonkomarev commented May 8, 2020

This PR introduces configuration for model connection. It is working the same way as Laravel Telescope Connection Config.

This required when your database with OAuth server is working not on default connection.

Not a breaking change because models use $connection property as a fallback value.

@driesvints
Copy link
Member

@antonkomarev can you rebase? We did a change to the passport config.

@antonkomarev
Copy link
Contributor Author

antonkomarev commented May 8, 2020

Surе, will do it tomorrow.

@antonkomarev
Copy link
Contributor Author

antonkomarev commented May 9, 2020

@driesvints rebase done.

@taylorotwell taylorotwell merged commit 555e02c into laravel:9.x May 11, 2020
@antonkomarev antonkomarev deleted the add-models-database-connection-config branch May 11, 2020 19:00
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.

3 participants