Level 75
DB::enableQueryLog();
Bill::with(['user', 'project'])->get();
DB::getQueryLog();
But the best is to use debugbar
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Bill::with(['user', 'project'])->get();
Is it possible to see raw sql query of this?
Please or to participate in this conversation.