-
I have made queries in my model, but I just want to dump the query to make sure the query is right in MongoDB? Is there any function to do that? |
Beta Was this translation helpful? Give feedback.
Answered by
GromNaN
Feb 14, 2024
Replies: 2 comments
-
I try to do
You can use it: \Illuminate\Support\Facades\DB::connection('mongo')->enableQueryLog();
$email = MongoEmail::where('id', 'your_value_here');
$email->get();
$queries = \Illuminate\Support\Facades\DB::connection('mongo')->getQueryLog();
dd($queries); |
Beta Was this translation helpful? Give feedback.
0 replies
-
The |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
JenuelDev
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
Query\Builder::dump()
method will be fixed by #2727