Magento, Laravel, Eloquent.
->orderBy('email', 'asc') ->limit(5) ->get(); dump(DB::getQueryLog()); Listening For Query Events If you want to receive each SQL query executed by your application, use the listen method. This method is helpful for logging queries or debugging. You may register your query listener in a service