Skip to content

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