Skip to content

[12.x]add method Illuminate\Database\Eloquent\Model::queryWithConnection() #56263

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

Closed
wants to merge 1 commit into from

Conversation

LjjGit
Copy link
Contributor

@LjjGit LjjGit commented Jul 10, 2025

image

@xurshudyan
Copy link
Contributor

You can use this

User::on('mysql')->get();

@LjjGit LjjGit changed the title add method Illuminate\Database\Eloquent\Model::queryWithConnection() [12.x]add method Illuminate\Database\Eloquent\Model::queryWithConnection() Jul 10, 2025
@LjjGit
Copy link
Contributor Author

LjjGit commented Jul 10, 2025

我说呢,我找了大半天我想要的方法,但是没有找到。不过我记得我很早以前用过Model::on(),只不过现在忘记了。

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